Assignment #41 and Using Swing For Imput

Code

                            /// Name: Graham Pollock
                            /// Period: 5
                            /// Program Name: prog611
                            /// File Name: prog611.java
                            /// Date Finished: 11/02/2015/
    import javax.swing.*;
    public class Prog611
    {
        public static void main ( String[] agrs )
        {
            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

Assignment