I add the metdo like the tittle says
In between the bark and main methods, add a method called run to the Dog class by typing:
but i get this text
Did you create the run method? Place it between the bark and main method.
my code below
class Dog{
int age;
public Dog(int dogsAge){
age=dogsAge;}//const
public void bark(){
System.out.println(“Woof!”);
}//barkpublic void run() {
}
public static void main(String args) {
Dog spike=new Dog(9); spike.bark();
}//main
}//dog class