这让我绝对疯狂.我有一个工作正常的包,然后我重命名了包,现在我不能使用System.out(或System类中的任何东西).因为这里的价值是我的Main班级(除了System.out线路之外我已经删除了所有内容,以防其他因素导致问题).
package goldminetosugarconvertor;
public class Main
{
public static void main(String[] args)
{
System.out.println("prog init");
}
}
Run Code Online (Sandbox Code Playgroud)
在NetBeans中out,System.out.println下划线带有错误,"cannot find symbol"但奇怪的是它将位置显示为"类goldminetosugarconvertor.System",这显然是错误的.
有什么好主意吗?我猜测当我重新命名包时会出现问题,但我无法弄清楚什么会破坏如此糟糕System而无法识别.