import javax.swing.*;
public class Learning
{
public Learning()
{
//values
String noa = "";
String nob = "";
double noc = noa*nob;
//other
String header = "Calculator";
float number = 1345213f;
int hi1 = 31254;
int hi2 = 345;
double hi3 = hi1/hi2;
char yes= 'y';
noa = JOptionPane.showInputDialog(null, "value 1?", "What do u wanna know?", JOptionPane.QUESTION_MESSAGE);
JOptionPane.showConfirmDialog(null,noa , "number1", JOptionPane.PLAIN_MESSAGE, JOptionPane.PLAIN_MESSAGE);
nob = JOptionPane.showInputDialog(null, "value 2?", "What do u wanna know?", JOptionPane.QUESTION_MESSAGE);
JOptionPane.showConfirmDialog(null,nob , "number2", JOptionPane.PLAIN_MESSAGE, JOptionPane.PLAIN_MESSAGE);
JOptionPane.showConfirmDialog(null, "Number 1 = " +noa +"\n Number 2 = " +nob +"\n Answer = " +noc, "test", JOptionPane.PLAIN_MESSAGE, JOptionPane.ERROR_MESSAGE);
}
public static void main(String args[])
{
new Learning ();
}
}