public static void main(String[] args)
{
System.out.println("begin time is:"+new java.sql.Timestamp(System.currentTimeMillis()));
String name = JOptionPane.showInputDialog("What is your name?");
String input = JOptionPane.showInputDialog("How ole are you?");
int age = Integer.parseInt(input);
System.out.println("Hello," + name + ".Next yuer,you'll be" + (age + 1));
System.out.println("end time is:"+new java.sql.Timestamp(System.currentTimeMillis()));
System.exit(0);
}
{
System.out.println("begin time is:"+new java.sql.Timestamp(System.currentTimeMillis()));
String name = JOptionPane.showInputDialog("What is your name?");
String input = JOptionPane.showInputDialog("How ole are you?");
int age = Integer.parseInt(input);
System.out.println("Hello," + name + ".Next yuer,you'll be" + (age + 1));
System.out.println("end time is:"+new java.sql.Timestamp(System.currentTimeMillis()));
System.exit(0);
}
You make my homework finished!!