Page 1 of 1

Java - How to end program if input has no terminating character?

Posted: Mon Oct 31, 2016 4:48 pm
by anuj10
There are certain problems like 12488, 989 which has no terminating input character to indicate end of input. How to handle this situation in java?
If anyone submitting in java know how to handle it please share it.

Thanks