I've been typing the code for the Sink-a-dotcom game from the Head First:Java book. I encountered problems on compile time though.
First, compared what i typed with the one in the book. when i didnt find any difference (except for bracket placements and spacing) in the two, i downloaded the code from the site and tried to compile the downloaded code (it worked). i tried to check whether i typed something wrong or forgot to enter a line and this time compared it to the downloaded code. Again, i didnt find anything different between the two.
And that's my question, what did i do wrong?
I encounter the problem on both of the source files for the game.
Here's the error for the Game helper file (changed the directory):
And here's the error for the main Dot Com Bust file solved
Here's the code i copied from the book followed by the code downloaded from wickedlysmart.com (the problem probably is in the first few lines but i added the whole things just in case) :