在netbeans中运行此代码时,它要求我选择主类..为什么默认情况下不选择公共类作为主类并运行?
class Staticclasss2{
public static void main(String[] args){
System.out.println("Hello world from staticclasss2");
}
}
public class Staticclasss{
public static void main(String[] args){
System.out.println("hello world from Staticclasss");
}
}