close Reader

This commit is contained in:
EAlexa 2020-04-07 16:50:22 +02:00
parent b351c33ad3
commit 5ce4cc2696

View File

@ -26,6 +26,7 @@ public class MinimizingLateness {
BufferedReader in = new BufferedReader(new FileReader("MinimizingLateness/lateness_data.txt"));
String ch = in.readLine();
if (ch == null || ch.isEmpty()) {
in.close();
return;
}
int indexCount = Integer.parseInt(ch);