Issues with if else and JOptionPane

Printable View