Help, i am stuck at this exercise
Always show error below.
Did you add the dogsAge parameter to the constructor?

Please help check my code.

class Dog {

int age;
public Dog (int dogsAge) {
		age = dogsAge ;
public static void main(String[] args) {



I'm stuck in the same spot with the same code. did you get a reply?


OMG! Its because there is a space between Dog and the (

the line should read...
public Dog(int dogsAge) {


OMG! Thank you hahaha I was so frustrated!!


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