Someone Please Help Me With This Problem Lol :D


#1

I Am Stuck On This Problem

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

Problem #2 Says Inside the bark method, type:

System.out.println("Woof!");

When I type it in I keep getting an error message this is the code I type in:

{ public void bark (System.out.println("Woof!");

}

But I get an error can someone please help me and give me the code please lol (:


#2

"inside the bark method" doesn't mean "in the parenthesis where the parameter list goes"

 public void bark() {
		
    // this is "inside the bark method"

 }

#3

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