Eclipse Java运行我的工作区中不再存在的文件

时间:2018-02-13 13:32:54

标签: java eclipse

我在日食中运行java文件时遇到问题。我确实检查了文件的类名,并且在main中是相同的。然而,当我运行该文件时,eclipse不断出现错误,表示它无法找到我已删除的文件。有什么建议?谢谢

class PatientNames {
  void run() throws Exception {
// do not alter this method to avoid unnecessary errors with the automated judging
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
PrintWriter pr = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
while (true) {
  StringTokenizer st = new StringTokenizer(br.readLine());
  int command = Integer.parseInt(st.nextToken());
  if (command == 0) // end of input
    break;
  else if (command == 1) // AddPatient
    AddPatient(st.nextToken(), Integer.parseInt(st.nextToken()));
  else if (command == 2) // RemovePatient
    RemovePatient(st.nextToken());
  else // if (command == 3) // Query
    pr.println(Query(st.nextToken(), // START
                     st.nextToken(), // END
                     Integer.parseInt(st.nextToken()))); // GENDER
}
pr.close();
}

public static void main(String[] args) throws Exception {
// do not alter this method to avoid unnecessary errors with the automated judging
PatientNames ps2 = new PatientNames();
ps2.run();
}

0 个答案:

没有答案