I am stuck on this exercise and I would appreciate help.
Error: Dog.java:17: error: cannot find symbol
System.out.print1n(“Woof!”);
^
symbol: method print1n(String)
location: variable out of type PrintStream
1 error
//create a custom Dog class
class Dog {
//use instance variables to model our Car class after a real-life Dog
//the class contructor for the Dog Class
int age;
public Dog(int dogsAge) {
age = dogsAge;
}
public void bark() {
System.out.print1n("Woof!");
}
public static void main(String[] args) {
Dog spike = new Dog(5);
}
}
I don’t even know what that character is. is doesn’t quite look like a “l” neither an i.
Edit: Oh sorry, I guess it is an l, I’m use it looking differently. at the time it looked more like a one than the letter l. Thanks for the help, sorry for being dumb.