我在Eclipse中创建了一个新的java项目,然后在其中创建了一个新类并在其中编写了这些代码:
public class main {
public static void main(String[] args) {
system.out.println("hello world");
}
}
运行项目时会出现此问题:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
system cannot be resolved
at helloworld.main.main(main.java:7)