How to use multiple classes in java in one file?
You can only have one public top-level class per file. So, remove the public from all but one (or all) of the classes. However, there are some surprising problems that can happen if you have multiple classes in a file. Basically, you can get into trouble by (accidentally or otherwise) defining multiple classes with the same name in the same … Read more