11/13 if I press "run" it will run and never stop running


#1



https://www.codecademy.com/en/courses/learn-java/lessons/object-oriented-programming/exercises/using-methods-2


There is no error message, but it just wont continue. I press "run" and it "runs" for days and ages :wink: Ther is no way to stop it but to go back one step (10/13) and forward again... it wont tick the exercises that i should do either. (so I tried it myself somehow...)
Is there anything I could do? Its very annoying, restarting and resetting all the time... :-/ especially if I cant proceed.


class Dog {
  int age;

  //constructor name=classname
  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 int getAge(){
    return age;
  }
  
  	public static void main(String[] args) {
   Dog spike = new Dog(5); //birth of dog
      spike.bark();
      spike.run(235);
      System.out.println(spike.getAge());
  }
}


#2

lol sry the moment I posted it (after hoping that it will solve it self for 2 days...) it now finally resetted itself and magically works ^^


#3

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