Java 3/3 Dog constructor


#1

I don't get it what am I doing wrong?


#2

Hey @krokodeal! The problem is that at line 4 you dont need that semicolon after main. Preety easy :smile:

public static void main(String[] args){

}

#3

It's not working even then!


#4

Remember to include your { }'s ...

 public Dog() {

 }

#5


It's not working for me either. What am I doing wrong here??


#6

Your Dog constructor and your main method are two separate things, they should not be nested inside each other like that. Close your constructor before you open your main method.


#8


what is wrong?


#9

It looks like you've put your Dog constructor:

public Dog() {

}

inside of your main method:

public static void main(String[] args) {
    
}

Split them apart!


#10

2 posts were split to a new topic: Not sure why I keep receiving this parsing error


Not sure why I keep receiving this parsing error
#12