Skip to content

Commit

Permalink
close Reader
Browse files Browse the repository at this point in the history
  • Loading branch information
EAlexan committed Apr 7, 2020
1 parent b351c33 commit 5ce4cc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MinimizingLateness/MinimizingLateness.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public static void main(String[] args) throws IOException {
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);
Expand Down

0 comments on commit 5ce4cc2

Please sign in to comment.