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


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);


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

I am having the same problem. Someone please help!

Try adding an additional } at the very end.

Change Woof! to woof. they need to fix that

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