Don't know what went wrong

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
7/13 Java/Objects

<In what way does your code behave incorrectly? Include ALL error messages.>
I don’t know why error keeps popping up.

```class Dog {

int age;

public Dog(int dogsAge) {

age = dogsAge;

}

public static void main(String[] args) {

  Dog mySpike = new Dog(9);
  }

}

Replace this line with your code.

<do not remove the three backticks above>

Hey.

Nothing technically wrong with your code.

Try renaming mySpike to just spike. Sometimes in the instructions can be quite strict as to what you should be naming variables. mySpike in any other case would have worked just fine though!

thx bro! ;;;;;;;;;;;;;;;;;;;

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.