My program keeps saying that the method cannot be resolved

前端 未结 2 1057
一整个雨季
一整个雨季 2021-01-28 06:42

This program should tell me if it can find the file I am naming. Eclipse has no red lines but every time I run it I get this error message and I don\'t know why. Thank you in ad

2条回答
  •  借酒劲吻你
    2021-01-28 07:09

    System.out.println(r.checkIsFile());
    

    should be in the static main function, you are going the wrong way for the flow of code...

提交回复
热议问题