Testing JOptionPane input