Assignemnt #41 and Prog611

Code

    ///Name: Daniel Tiffany-Appleton
    ///Period: 7
    ///Program Name: Prog611
    ///File Name: Prog611
    ///Date Finished: 10/15/15
    
    import javax.swing.*;
    
    public class Prog611
    {
        public static void main ( String[] args )
        {
            String name = JOptionPane.showInputDialog( "What is your name ?" );
            
            String input = JOptionPane.showInputDialog( "How old are you?" );
            int age = Integer.parseInt(input);
            
            System.out.print( "hello, " + name + "." );
            System.out.println( " Next year, you'll be " + (age+1) );
            
            System.exit(0);
        }
    }


    

Picture of the output

Assignment 41