8 Methods I


#1

What's wrong with my code did I put something wrong?
I don't understand the error can someone explained the error.

class Dog {
  
  int age;

	public Dog(int dogsAge) {
    
  	age = dogsAge;
    
  }
  
  public void bark() {
    
    System.out.printIn("Woof!");
  	
  }

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

	}
}

#2

Error message says, no such symbol, printIn

And there isn't. But there is one spelled nearly the same. Compare.


#3

I think your "l" in print on is an capital "i"


#4

Request close problem solved!


#5