Solve error in ReadFile.java