Closing the bufferedreader gives a runtime error ?

Closing the buffered reader(java) using br.close() gives a runtime error for this problem - SUMTRIANGLE
Should we not close the buffered reader ?

Link to my correct and incorrect solution :
correct code

incorrect code

1 Like

I found that before too, maybe there is my question somewhere. Today I’m not closing reader in my solutions.

I think that now the issue has been fixed. And now closing the buffered reader does not give an exception.

//