First off, let me say:
Back in the day I tried to learn C++, but I was younger and patience wasn't my virtue. After that I tried out scripting for NWN and found that to be fun, but my computer died and I lost interest.
After playing Minecraft and Dwarf Fort recently, my interest in learning a programing language has been rekindled and it seems like Java is a good place to start. I'm 23 btw.
So heres the breakdown:
After deciding to try this out I went to the net to find a book, got myself a copy of Head First and I'm on the Guess Game Tut.
Here's what I have:
After getting 23 errors in the code I was able to widdle it down to 2 on my own. I'm using Eclipse for this. Was gonna use notpad and the JDK compiler but I couldn't figure that out on my own. This what I'm having trouble with in the code now.
Its telling me the 'The public type Player has to be defined in its own file."
Same for this (only with GameLauncher):
Now the tut doesn't specify this. I have it all in one Java doc. How do I solve this?
Now the book is done 1.5 I'm using 1.6 Is this my problem? What am I missing? Are my classes defined right? I'm also not to sure what the method and classes are here. Same for the instance variable.
Thank you to anyone who has taken the time to read this, and great thanks to anyone who takes the time to help a clueless self teaching student.
I'm looking forward to a long stay here.