i am looking over some of my old (poorly written) code. i want to try to do IO the same for all of them, and do it properly. the way i was doing it was a try block that called a private method to do the reading. it had a catch block, but no finally
as i look at try with resources you declare the resource in the try statement. here i will show an example
should i get rid of the private method? or what?
perhaps something like this?