close Reader
This commit is contained in:
parent
b351c33ad3
commit
5ce4cc2696
@ -26,6 +26,7 @@ public class MinimizingLateness {
|
|||||||
BufferedReader in = new BufferedReader(new FileReader("MinimizingLateness/lateness_data.txt"));
|
BufferedReader in = new BufferedReader(new FileReader("MinimizingLateness/lateness_data.txt"));
|
||||||
String ch = in.readLine();
|
String ch = in.readLine();
|
||||||
if (ch == null || ch.isEmpty()) {
|
if (ch == null || ch.isEmpty()) {
|
||||||
|
in.close();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int indexCount = Integer.parseInt(ch);
|
int indexCount = Integer.parseInt(ch);
|
||||||
|
Loading…
Reference in New Issue
Block a user