Trying to get a Java program to run
I have downloaded the JDK and tried to run a program I have written. When I try to run the program, The black screen comes up and then goes away quickly before I can read it. Can anyone tell me what I am doing wrong or if it might be downloaded incorrectly? My system platform is Windows and I am using Vista. I am also trying to figure out how to create a non-GUI based Java application that calculates weekly pay for an employee. The application should display text that requests the user input the name of the employee, the hourly rate, and the number of hours worked for that week. The application should then print out the name of the employee and the weekly pay amount. In the printout, display the dollar symbol ($) to the left of the weekly pay amount and format the weekly pay amount to display currency. I am having a hard time figuring out how to get a program to do this and how to get the program to run when my system is not working with me or I am doing something wrong.