• Advertisement

Archived

This topic is now archived and is closed to further replies.

[java] VJ++ console output wont stay open

This topic is 6320 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, I have been programming with VC++ for a long time now, but i just started a java course and I am trying to use VJ++, and got code working and everything, but when i go to run it, its a console app, and brings up the dos command shell and spits out my output and then the console disapears. The whole console window is only open for a fraction of second, i know in VC++ there is an option to keep the window so i can see my ouput, but for the life of me i cant find this option in VJ++ Can anyone help me please!!!!!!!!!!!!!!!!!!!!! Possibility

Share this post


Link to post
Share on other sites
Advertisement
add this code to the end of the main section

try {
System.in.read();
} catch(Exception e) {}

I wish there was a button on my monitor to turn up the intellegince.
Theres a button called 'brightness' but it doesn't work

Share this post


Link to post
Share on other sites
oh yeah just hit any key to close the console after

I wish there was a button on my monitor to turn up the intellegince.
Theres a button called 'brightness' but it doesn't work

Share this post


Link to post
Share on other sites

  • Advertisement