I don't get it what am I doing wrong?
Java 3/3 Dog constructor
krokodeal
#1
amanuel2
#2
Hey @krokodeal! The problem is that at line 4 you dont need that semicolon after main. Preety easy
public static void main(String[] args){
}
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.
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!
albionsrefuge
#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