You're comparing all 0's
Do this to initalize the numbers:
num1 = Integer.parseInt(JOptionPane.showInputDialog("Inpu t First Number: ");
num2 = Integer.parseInt(JOptionPane.showInputDialog("Inpu t Second Number: ");
num3 = Integer.parseInt(JOptionPane.showInputDialog("Inpu t Third Number: ");
That will set the correct values to be compared in the if statements.
|