你们可以帮助我吗?
public class XCopy {
public static void main(String[] args) {
int org = 42;
XCopy x = new XCopy();
int y = x.jazda(org);
System.out.println(org + " " + y);
}
int jazda(int arg) {
arg = arg*2;
return arg;
}
}
编译器没有看到任何问题,但结果显示:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at XCopy.main(XCopy.java:5)
答案 0 :(得分:0)
检查Eclipse选项" Project" - "自动构建"已启用。