【发布时间】:2014-04-16 18:27:54
【问题描述】:
所以我突然连这么简单的代码都不能运行:"
public class Test {
public static void main (String [] args)
{
int i=6;
System.out.println("this is i: %d" ,i);
}
}
也没有与 printf 一起使用。 格式...等也是如此。
我得到的错误是:线程“main”java.lang.Error中的异常:未解决的编译问题:
The method println(int) in the type PrintStream is not applicable
for the arguments (String, int) at examples.Test.main(Test.java:7)
我不知道编译器出了什么问题...我应该重新安装 Eclipse 吗?
【问题讨论】:
标签: java