so I am followin the code in head first
java and am running into a problem every time i try to compile. I get this error:
C:\java>javac beer.java
beer.java:1: class BeerSong is public, should be declared in a file named BeerSo
ng.java
public class BeerSong {
^
1 error
If I remove the public from the beginning of the line then everything compiles and works fine. Why is this?
Thanks