Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How do I get my output to pause on the screen so I can view it?

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I downloaded Notepad++, thank you for the suggestion.

I wrote my first code that I run from the command line:

public class MyFirstApp {

public static void main (String[] args) {
System.out.printIn("I Rule!");
System.out.printIn("The World");
}
}

and a command prompt opens and then closes. What do I need to add, or do, to get that command prompt to stay open so I can view my code?

Thank you
 
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
personally, I would run it from the command line, not from in notepad++.
 
Dj Driver
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I wrote the code in Notepad++ and saved the file. I then tried to run it from the command line (not from Notepad++) and the box opens and closes. Please help.
 
fred rosenberger
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I'm going to close this topic, since it seems to be the exact same discussion as what is going on over here
    Bookmark Topic Watch Topic
  • New Topic