Ask coding questions

← Back to all posts
Can someone please help me with this java project?
Jerrywkane

Click on the classes button on the left to access the full project. This is an assignment for a boot camp type program. It is a java project that is focused on instance variables and casting objects. Right now I only have one one error message which is:
Rabbit.java:9: error: <identifier> expected
Main.(Animal);train();
^
So I am having a hard time understanding what it's asking me to do. Any help would be greatly appreciated you guys are awesome! The expected output of the program is as follows:

I am a dog
Rex's color is brown
I am a rabbit
I am a cat
Floof's speed is 15
Tom's jump height is 8

Voters
Jerrywkane