CodePudding user response:
The same Java source files, not at the same time, there are two public classes, or the public class public FooDemo are removed, or write it separately in a Java fileCodePudding user response:
In Java a file can only have a non-static class, and the class name and file name to the same,