console

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sugard
    New Member
    • Aug 2007
    • 50

    console

    I made a small program and i used the console application. Though when the console window is displayed it disappears immediately.

    Do I need to insert some sort of readline or something like that so that the window stays there?

    thanks
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    In many cases, the window might indeed close automatically when the program ends. You can solve that by putting [code=java]System.in.read( );[/code] as the last command. (So yes, you do have to have a sort of read method.)

    Greetings,
    Nepomuk

    Comment

    Working...