0
当我编译/运行我的代码,它的功能完美。但是,我的代码中有一个持续性错误消息,指出无法解析String
和System
。 据我所知,这一切似乎都很好,就像我说的,它运行得很完美。 有没有人有什么想法是什么造成这个?Java Intellij - “无法解析符号”
感谢。
public class Main {
public static void main(String[]args){
System.out.println("This is main!");
HelloWorld.helloWorld(); //I am calling the function "helloWorld" from the HelloWorld class
System.out.println(ForLoop.loop()); //I am printing the return value of the function "loop" from the ForLoop class
ReturnArgsLength.returnArgsLength(args.length); //Passing in variable to function
}
}
显示的代码没有问题;如果你想更多地调试它,可以从'HelloWorld','ForLoop'和'ReturnArgsLength'添加代码 – bc004346
提到的类的列表代码以及 –
请尝试文件|使缓存失效|无效并重新启动,确保为项目正确配置了JDK。 – CrazyCoder