Methods II 10/13


#1

Not sure where I am going wrong.

https://www.codecademy.com/courses/learn-java/lessons/object-oriented-programming/exercises/methods-2?action=lesson_resume

System.out.print1n("Your dog ran " + feet + " feet!");
          ^

symbol: method print1n(String)
location: variable out of type PrintStream
1 error

  public void run(int feet) {
    
    System.out.print1n("Your dog ran " + feet + " feet!");
  
  }

#2

System.out.print1n("Your dog ran " + feet + " feet!");

It should be System.out.println not System.out.print1n

it's l not 1(one)


#3

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