Skip to content

Commit 2d5ec4d

Browse files
committed
Close Readers
1 parent 1df26ee commit 2d5ec4d

File tree

1 file changed

+3
-0
lines changed
  • src/com/codefortomorrow/advanced/chapter14/solutions

1 file changed

+3
-0
lines changed

src/com/codefortomorrow/advanced/chapter14/solutions/Lexico.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ public static void main(String[] args){
3636
System.out.println("File 1");
3737
} catch(IOException e){
3838
e.printStackTrace();
39+
} finally{
40+
br.close();
41+
br2.close();
3942
}
4043
}
4144
}

0 commit comments

Comments
 (0)