Runtime error(Nzec) in java code

I wrote java code for link text but its link text is giving a runtime error(NZEC) but when I ran it on my machine it was not throwing any exception.
If anybody knows why is it so it will be a great help.

Try using Buffered Reader instead of Scanner class to take input.

Write empty try catch block for your program. i.e your program should look like this

class Main{







catch(Exception e) {


You are getting NZEC because always there should be try catch block for handling exceptions

Please Help. I am not able to figure out why my code is giving NZEC.Solution ID:-7311162. link:- Language:-Java user:-abhiroj786.