JAVA "Press any key to continue..." message

Write here if you have problems with your Java source code

Moderator: Board moderators

Post Reply
New poster
Posts: 5
Joined: Wed Nov 07, 2001 2:00 am

Post by avlahov » Wed Nov 07, 2001 6:37 am


I am certain that I have solved problem 108 in Java but the online judge keeps saying that I have Wrong Answer. Could this be caused by the fact that at the end of my output I have the standart Java message "Press any key to continue..."? If yes, could you please give me a hint how to avoid this message?


New poster
Posts: 6
Joined: Tue Dec 11, 2001 2:00 am
Location: singapore

Post by simon81 » Thu Dec 27, 2001 4:34 pm

well, i think there should be no problem with java itself. The message is probablly provided by our source editor.
You can test the *real* output by piping the result to a file.
under dos, type:

java main >108.out

then type

type 108.out

to see the output

Post Reply

Return to “Java”