A public class needs to have the same name as the java file it's contained in.
A class must also be public in order to be able to run as a program AND have a main method with the correct signature.
Reputation Points: 1658
Solved Threads: 331
duckman
Offline 7,719 posts
since Nov 2004