小熊的第一个问题

代码:

public class Foo {
  public static void main(String [] args) {
  }
}

错误:

/in/Main.java:1: error: class Foo is public, should be declared in a file named Foo.java
public class Foo {
       ^
1 error

0 条评论

目前还没有评论...