Created
August 11, 2011 11:35
-
-
Save TomTasche/1139442 to your computer and use it in GitHub Desktop.
Auto-closing objects in Java 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try (InputStreamReader reader = new InputStreamReader(null); | |
BufferedReader buffReader = new BufferedReader(null)) { | |
// do something | |
} catch (IOException e) { | |
// TODO Auto-generated catch block | |
e.printStackTrace(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment