Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Auto-closing objects in Java 7
try (InputStreamReader reader = new InputStreamReader(null);
BufferedReader buffReader = new BufferedReader(null)) {
// do something
} catch (IOException e) {
// TODO Auto-generated catch block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment