Submiting java code

Write here if you have problems with your Java source code

Moderator: Board moderators

Post Reply
New poster
Posts: 2
Joined: Tue Apr 01, 2008 11:00 pm

Submiting java code

Post by kotoko » Tue Apr 22, 2008 4:56 pm


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

New poster
Posts: 28
Joined: Sun Oct 23, 2005 3:44 pm
Location: Dhaka, Bangladesh

Re: Submiting java code

Post by MAK » Wed Apr 23, 2008 2:45 pm

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.

Post Reply

Return to “Java”