When I program even the smallest program and I run it in dos the damn thing keeps closing on me before I see my result. maybe its my coding... i am still a newbie to Java. here is my code:

/*
* Main.java
*
* Created on February 6, 2007, 8:45 AM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/

package additionapp.additionapp;

/**
*
* @author Administrator
*/
import java.util.Scanner;

public class Main {

/** Creates a new instance of Main */
public Main() {
}

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner input = new Scanner(System.in);

int number1;
int number2;
int sum;

System.out.print("Enter First Interger: ");
number1 = input.nextInt();

System.out.print("Enter Second Interger: ");
number2 = input.nextInt();

sum = number1 + number2;

System.out.printf("Sum is %d\n", sum);

System.out.printf("Press Any Key to Exit");


}

}