Advertisement

VJ++ console output wont stay open

Started by October 01, 2000 08:08 PM
1 comment, last by Possibility 24 years, 3 months ago
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
Ummm... This is ugly, because it''s a language based solution rather than an environment based solution, but it should work pretty easily. Put this line right at the end of your main method:


    new BufferedReader(new InputStreamReader(System.in)).readLine();    


Of course, you could just create that object once and use readLine() multiple times, perhaps even *gasp* for input.
Advertisement
Yah, i know i can do that, but in VC++ there is an option to keep the dos command window open, its little check box you can check in the options, and should be an identical option in VJ++ but i cant find that damn option anywhere

Possibility

This topic is closed to new replies.

Advertisement