I am having a problem in the page 39 guessing game in Headfirst
Java.
The command prompt is
GameLauncher.java:1: class GuessGame is public, should be declared in a file nam
ed GuessGame.java
public class GuessGame {
^
GameLauncher.java:65: class Player is public, should be declared in a file named
Player.java
public class Player {
^
So, I separately made .java file containing GuessGame class and Player classs and compiled it.
But still the GameLauncher.java isn't able to compile showing the same error.I don't understand the reason.Now I have separate class files for each of them,it must compile now.
Help!!