Did you create the run method?


#1

I'm having exactly the same problem. I cannot pass 10/13 in the same stage, i.e. constantly appears message: "Did you create the run method? Place it between the bark and main method." although my code runs (showing on the screen "Woof!
Your dog ran 40 feet!"). Can someone help?


10/13 Error, Even the solution code won't work... x.x
#2

A screenshot of your whole browser will help your helpers see what you see.


#3

Here is my code:

class Dog {

 int age;

public Dog(int dogsAge){ 
age = dogsAge;
} 


 public void bark() { //tworzymy metode bark - szczekanie
    System.out.println("Woof!");
} 

  public void run(int feet) {
    System.out.println("Your dog ran " + feet + " feet!");
}


public static void main(String[] args) {

    Dog mySpike = new Dog(3); 
    mySpike.bark();  
    mySpike.run(40);  

}

}


#4

I ask for this because it helps to see all of the error messages and to see which checkpoint have turned green and which are still red.


#5

ok, now I cannot already give you the screenshot of the whole browser, because today everything works, so the same code is letting me to go from 10/13 to 11/13 excersise. So if you have fixed it - thanks.
But I can try to describe you: So earlier was popping out that message "Did you create the run method?..." already in the 1st step od doing excersise, although I was putting it exactly as in the code from solution. The code was exactly the same as yesterday, and steps I was doing were also the same.
(maybe if in the future, if the problem reappears - then this description will be helpful).