10/13 - Help

Right, I have used the ‘Get Code’ thing on 10/13, and even with that done, it still doesn’t work. Why isn’t this working?

class Dog {
  int age;

	public Dog(int dogsAge) {
  	age = dogsAge;
  public void bark() {
  public void run(int feet) {
    System.out.println("Your dog ran " + feet + " feet!");

	public static void main(String[] args) {
    Dog spike = new Dog(5);



Please can you help me?


having the exact same problem. Pretty sure that’s a bug right there… FIX IT

1 Like

Yup same here, i also clicked “Get Code”

1 Like

I also have the same trouble. Now I still get held up there.

Exactly the same problem. I get the right result in the consul window, but it complains I haven’t put the run method between “bark” and “main”. It’s there, both in my code and in the replacement code. It won’t let me through this stage

Looked in another thread about this, it seems to work if you do it step by step and then run for each step. Which is counterintuitive because all the previous exercises let you/make you do them all in one go


Can you please link the thread here. Thank You

I have attempted to do step by step Ive tried putting the public void run thing every where and even got the code copied it in work and reset the assignment. Then I tried to reverse engineer it and its not working. I am literally looking at the code for it. Any ideas?

1 Like

So this is a bug then? Happening to me as well.

Tiggie’s right, you have to complete the first step first and then you can do the rest in one go.

This worked for me, thanks!

Step-by-step worked for me too. Thank you!

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