Skip to content

Commit 5ce4cc2

Browse files
committed
close Reader
1 parent b351c33 commit 5ce4cc2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

MinimizingLateness/MinimizingLateness.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public static void main(String[] args) throws IOException {
2626
BufferedReader in = new BufferedReader(new FileReader("MinimizingLateness/lateness_data.txt"));
2727
String ch = in.readLine();
2828
if (ch == null || ch.isEmpty()) {
29+
in.close();
2930
return;
3031
}
3132
int indexCount = Integer.parseInt(ch);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy