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

General topic about Valladolid Online Judge

Moderator: Board moderators

Post Reply
anuj10
New poster
Posts: 1
Joined: Mon Oct 31, 2016 4:41 pm

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

Post 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
Post Reply

Return to “General”