2017-03-16 72 views
0

当我编译/运行我的代码,它的功能完美。但是,我的代码中有一个持续性错误消息,指出无法解析StringSystem。 据我所知,这一切似乎都很好,就像我说的,它运行得很完美。 有没有人有什么想法是什么造成这个?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 

    } 
} 
+0

显示的代码没有问题;如果你想更多地调试它,可以从'HelloWorld','ForLoop'和'ReturnArgsLength'添加代码 – bc004346

+0

提到的类的列表代码以及 –

+0

请尝试文件|使缓存失效|无效并重新启动,确保为项目正确配置了JDK。 – CrazyCoder

回答

0

好吧我解决了它。

问题是我的.Class文件在文件类型设置中设置为“忽略”。 一旦我从列表中删除它们,它就开始再次识别命令