Java 7 try-with-resources

I would like to celebrate today’s release of Java 7 with discussing one of the new features that I consider especially helpful: The try-with-resources Statement. Apart from saving a lot of typing, this statements helps to avoid typical errors in dealing with resources that I have seen now in ~100 student assignments. Consider the following … More Java 7 try-with-resources