0

why is this code not working

this code is for reading text files in my HUAWEI cellphone https://code.sololearn.com/c1XNSM384j3s/?ref=app

24th Mar 2019, 11:59 AM
lebogang
1 Answer
+ 1
You have to surround the while along the br.close() with a try statement, and after enclosing do a catch(IOException e){ System.out.println(e); } EDIT: Didn't see the Throws initially, just add the IOException there
24th Mar 2019, 12:58 PM
Luis SepĂșlveda
Luis SepĂșlveda - avatar