Brand new to java ... window is closing
I am brand new to java (jdk 6.0_24 installed, running Windows XP), and using BlueJ (3.0.4) as my editor/compiler. I've tried a couple different programs from a book I am using (Sams Teach Yourself Java 6), and I think they may be running. They compile just fine, and I am getting files with .java extensions. When I run the programs, a command window opens, which I would expect, but then it closes immediately, so I can't see any of the output.
When I was learning C++, I figured out that I could add a variable and create a cin<< statement to that variable at the end of my program, leaving the window open until I entered that variable. But I don't know enough java at this point to try that, if that would even solve my issue.
Any help here would be appreicated.