My instructions aren't registering as complete for 10/13


#1



Hi, i'm having a problem getting past

10/13


I'm not getting any error messages because the code is fine but it doesn't register that i've completed the steps even though everything is in the right order.


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(5);
    spike.bark();
		spike.run(13);
    
	}

}


#2

Ok i've gotten past this at last. I had to make my run method barren of parameters and instructions. Then it recognized the 1st step as done


#3

What should I do ? I can not pass it.


#4

oh, i understood , i must finish it the first step,then second step....... my English not good


#5

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