<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.>
The window is showing my code printing correctly, but I am still receiving the error: “Did you create the run method? Place it in between bark and main method.” What am I missing?
```
class Dog {
int age;
public Dog(int dogsAge) {
age = dogsAge;
}
public void bark() {
System.out.println(“Woof!”);
}
public void run(int feet) {
System.out.println(“Your dog ran “+feet+” feet!”);
}
public static void main(String args) {
Dog spike = new Dog(7);
spike.bark();
spike.run(5);
}
}
class Dog {
int age;
public Dog(int dogsAge){
age = dogsAge;
}
public static void main(String[] args) {
Dog spike = new Dog(5);
spike.bark();
spike.run(69);
}
public void bark(){
System.out.println("Woof!");
}
public void run(int feet) {
System.out.println("Your dog ran " + feet + " feet!");
}
}