Home > Back-end >  Common type must be defined in its own file
Common type must be defined in its own file

Time:10-18

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 file

CodePudding user response:

In Java a file can only have a non-static class, and the class name and file name to the same,
  • Related