Search found 2 matches

by skytreader
Sun Mar 07, 2010 6:42 pm
Forum: Java
Topic: Terminating Input in Java
Replies: 2
Views: 3467

Re: Terminating Input in Java

I've figured it out...somehow :D. I coded a try-catch block. It seems that a try-catch is still necessary even if you are not really expecting an error to occur. However, I still haven't figured out how to terminate input when the end is not specified (again, in contrast to those problems which spec...
by skytreader
Tue Jan 19, 2010 4:02 pm
Forum: Java
Topic: Terminating Input in Java
Replies: 2
Views: 3467

Terminating Input in Java

Hello. As I see it, the judge uses command-line input. While some problems give a "terminator" input (e.g. if two integers are given per line in an input, the "terminator" input is usually "0 0"), others do not. How do I go about that in Java? This is what I am doing: public static void main(String[...

Go to advanced search