8.Methods 1 (Second part)

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
I am stuck at the second part of the 8.Methods 1

https://www.codecademy.com/en/courses/learn-java/lessons/object-oriented-programming/exercises/methods-1
I get this error

Dog.java:11: error: cannot find symbol
System.out.printIn(“Woof!”);
^
symbol: method printIn(String)
location: variable out of type PrintStream
1 error



my typed code
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);

    }

}


Hi @jocremustech,

It should be println rather than printIn

2 Likes

omg lol you are so right. I noticed it but for a sec it crossed my mind it was just the font type, not the ‘l’ letter.
Thanks again :blush:

1 Like

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