Page 1 of 1

Submiting java code

Posted: Tue Apr 22, 2008 4:56 pm
by kotoko
Hi!

I'm trying to submit for the first time in the system. I'm confident my solution is correct since it already got accepted in a local contest.
I'm already using the recommended readLn function and have no public classes or methods (except main).

I get a Runtime error. What should I be hunting for? Different input? Can my solution be wrong? Any other formatting restrictions?

It's volume VIII problem 869 - Airline Comparison.

Thanks in advance

Re: Submiting java code

Posted: Wed Apr 23, 2008 2:45 pm
by MAK
You don't need the recommended readLn method. Java uspport at this judge has been upgraded and it now fully supports jdk1.6. So, you can simply use Scanner and/or BufferedReader. Make sure that the class with the main method is named Main.