try { FileReader fr = new FileReader(file); BufferedReader br = new BufferedReader(fr); String line = null; } catch (FileNotFoundException fnf) { fnf.pri
Now finally block is not needed,
try (FileReader fr = new FileReader(file); BufferedReader br = new BufferedReader(fr);){ String line = null; } } catch(FileNotFoundException fnf) { fnf.printStackTrace(); }
now automatically close your readers