8.Methods 1 (Second part)


I am stuck at the second part of the 8.Methods 1

I get this error

Dog.java:11: error: cannot find symbol
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() {
    public static void main(String[] args) {
    Dog spike = new Dog(5);




Hi @jocremustech,

It should be println rather than printIn


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:


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