I am having error after entering ; Dog spike = new Dog(7);


#1

i am having error after entering ;
Dog spike = new Dog(7);

here is the entire code ... someone help

class Dog {

int age;

public Dog(int dogsAge) {
age = dogsAge;
}

public static void main(String[] args) {
Dog spike = new Dog(7);


Help
#2

Missing closing braces.

    public static void main(String[] args) {
        Dog spike = new Dog(7);
    }
}