Assignment 41 and Prog611
Code
/// Name: Matthew Hughs
/// Period: 5
/// Program Name: Prog611
/// File: Prog611.java
/// Date Finished: 11/9/2015
import javax.swing.*;
public class Prog611
{
public static void main (String [] args)
{
String name = JOptionPane.showInputDialog("What is your name?");
String imput = JOptionPane.showInputDialog("How old are you?");
int age = Integer .parseInt(imput);
System.out.print("Hello, " + name + " .");
System.out.println("Next year you'll be " + (age+1) );
System.exit(0);
}
}
Picture of the output