求助 莫名奇妙的错误
public static final int START_X = 200;
public static final int START_Y = 200; //这里提示:Multiple markers at this line- Syntax error on token ";", { expected after this token
try{
FileReader in = new FileReader("D:\test.txt");
}catch(FileNotFoundException e){
e.printStackTrace();
}
错误是加了try~catch后出现的 括号检查过了 没问题啊
[解决办法]
养成一个好的习惯,建议使用FileReader(File file) 此构造方法,路径就会提示错误了~
[解决办法]