9. I copied the example exactly but put in the information the instructions ask for but I still get an error asking if I called the bark method


#1

I'm having the exact same problem. I copied the example exactly but put in the information the instructions ask for but I still get an error asking if I called the bark method::

class Dog {

int age;

public Dog(int dogsAge) {

age = dogsAge;

}

public void bark() {

System.out.println("Woof!");

}

public static void main(String[] args) {

Dog spike = new Dog(4);
spike.bark();

}
}


9. I am having the error message appear
#2

@phonixuk
Try a refresh Browser

Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).


#3

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