Write an application that takes two numbers from keyboard and display summation,subtraction, multiplication and division of two numbers in message box.

import javax.swing.JOptionPane;

class SimpleSum
{
    public static void main(String args[])
    {
        int a,b,sum=0,sub=0,mul=0;
        float div=0;
        String st;
        st=JOptionPane.showInputDialog("Enter any number:");
        a=Integer.parseInt(st);
        st=JOptionPane.showInputDialog("Enter any number:");
        b=Integer.parseInt(st);
        sum=a+b;
        JOptionPane.showMessageDialog(null,"The summation is: "+sum);
        sub=a-b;
        JOptionPane.showMessageDialog(null,"The subtraction is: "+sub);
        mul=a*b;
        JOptionPane.showMessageDialog(null,"The multiplication is: "+mul);
        div=(float)a/b;
        JOptionPane.showMessageDialog(null,"The division is: "+div);

    }
}