Caluladora! Alguem ajuda

2 respostas
P

import javax.swing.JOptionPane;

public class Soma {

public static void main (String args[])

{

String numero1,numero2;

int num1,num2,total;

numero1 = JOptionPane.showImputDialog(Digite o 1º numero:);

numero2 = JOptionPane.showImputDialog(Digite o 2º numero:);

num1 = Integer.parseInt (numero1);

num2 = Integer.parseInt (numero2);

total = num1+num2;

JOptionPane.showMessageDialog(null,A soma dos numeros e + total,

Resultado total,JOptionPane.PLAIN_MESSAGE);

System.exit(0);

}

}

JOptionPane.showImputDialog
^
error

Alguem pode me ajudar a solucionar esse erro!!!

2 Respostas

A

JOptionPane.showInputDialog

P

Valew

Criado 15 de julho de 2006
Ultima resposta 17 de jul. de 2006
Respostas 2
Participantes 2