help with a code
can anyone tell me where is the error on this code???
x = Double.parseDouble(JOptionPane.showInputDialog("qual resposta vc escolhe?"));
JOptionPane.showMessageDialog(null, "Moo Onii-chan no Baka Baka Baka ><", "esta foi uma resposta ruim...", 1);
the objective is to use a text window to give a value to X and with that value, choice an apropriate answer.
already tried with if and also didn't worked