Why do I get the error “File cannot be resolved to a type”?

后端 未结 4 1726
天涯浪人
天涯浪人 2020-12-10 17:26

Here\'s part of my code

try{

    BufferedReader in= new BufferedReader(new InputStreamReader(System.in));

    while ((line= in.readLine())!=\"exit\"){

            


        
4条回答
  •  渐次进展
    2020-12-10 18:07

    I received this error once, even though I had already imported java.io.File. I think it was some weird, temporary Eclsipse glitch. When I made other changes to the code, then saved it again, the error resolved itself.

提交回复
热议问题