Hey there! I'm new to
java and I'm currently learning from the book Head First Java. There is a guessing game example, with three different classes, all of which I've saved in different java files, with the names GameLauncher, GuessGame, and Player. I can only compile the last one, however.
Code in the GameLauncher.java file:
I get the following error:
As for the GuessGame.java file, here's the content:
I get exactly the same error as before, but the "word" in cause is Player. I first thought of the fact that java is case sensitive, but I seem to have typed it with a capital P every time (the .java file begins with a capital P and the name of the class inside is also capitalized). So is the case with GuessGame. There may be typos that I haven't noticed, though. Any help would be greatly appreciated.
P.S. If needed, here is the code in the Player file, as well: