Create an application program that consists of 2 classes ,a "startup class" and a second class that prints out the values of atleast 3  instance varibles that are initialized in one method and printed from another .The initialization method should have two forms.One of them will have no arguments and other 3 arguments corresponding to the data types of the 3 instance variables. The second class should also contain a "class vriable" of one of the 8 primitive data types (you choos). Create 2 instances of the second class. Using one instances, set the class variable to some value and, using the second instance, print that value out. Also using either or both of the 2 instances, call the methods that set and print the 3 instance variables. ( File must be save as: Assignment05.java)

import javax.swing.JOptionPane;
class Startup
{
            short a,b,c,ch;
            void init()
            {
                        a=0;
                        b=0;
                        c=0;
            }
            void init(short x,short y,short z)
            {
                        a=x;
                        b=y;
                        c=z;
            }
            void print()
            {
                        JOptionPane.showMessageDialog(null,"a= "+a+"\n b= "+b+"\n c= "+c);
            }
}
class Assignment05
{
            public static void main(String args[])
            {
                        String s;
                        Startup b=new Startup();
                        short a,p,c,ch;
                        do
                        {
                                    s=JOptionPane.showInputDialog("Enter your choice from 1to 4.\n"+"1 for blank initial.\n"+"2 for value initial.\n"+"3 for print.\n"+"4 for exit.");
                                    ch=Short.parseShort(s);
                                    switch(ch)
                                    {
                                                case 1:
                                                b.init();
                                                break;
                                                case 2:
                                                s=JOptionPane.showInputDialog("a= ");
                                                a=Short.parseShort(s);
                                                s=JOptionPane.showInputDialog("b= ");
                                                p=Short.parseShort(s);
                                                s=JOptionPane.showInputDialog("c= ");
                                                c=Short.parseShort(s);
                                                b.init(a,p,c);
                                                break;
                                                case 3:
                                                b.print();
                                                break;
                                    }
                                    //while(ch!=4)
                        }
                        while(ch!=4);
                        System.exit(0);
            }
}


////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........