http://www.oracle.com/technetwork/articles/java/trywithresources-401775.htmlusing try-with-resources statement