A java source file needs to have a class statement with the name of the class:

public class TheClassNameHere {
// class's contents here
} // end of class

If there are references...