I need help on 9/13 Using Methods 1 Someone PLease Help Me lol


#1

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

This is my Code

public Dog(int dogsAge) {

age = dogsAge;

{

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

}

public static void main(String[] args) {

Dog spike = new Dog(5);
spike.bark();



}

Do You Guys Know What I'm Doing Wrong? Lol can someone please give me the proper code lol


#2

I am having the same problem. Someone please help!


#3

Try adding an additional } at the very end.


#5

Change Woof! to woof. they need to fix that


#6

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