3.10 - Methods II - Step One : "Did you create the run method?" error

<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.>

<In what way does your code behave incorrectly? Include ALL error messages.>

```

class Dog {
int age;
public Dog(int dogsAge) {
age = dogsAge;
}
public void bark() {
System.out.println(“Woof!”);
}
public void run() {
}
public static void main(String args) {
Dog spike = new Dog(5);
spike.bark();
}
}

Did you create the run method? Place it between the bark and main method.

  1. In between the bark and main methods, add a method called run to the Dog class by typing:

public void run() {
}

<do not remove the three backticks above>

Found solution here…

To save you a click: complete the exercise all in one go (as in: do all the stuff that is greyed out).
I sent a bug report.

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