no me corre después de ingresar el numero
Publicado por juan calderon (1 intervención) el 18/08/2022 23:59:47
package pkg18.agosto.pkg2022;
import java.util.Scanner;
import javax.swing.JOptionPane;
/**
*
* @author EQUIPO
*/
public class Agosto2022 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int numero,dato = 5;
numero = Interger.parseInt(JOptionPane.showInputDialog("digite un numero"));
if (numero==dato){
JOptionPane.showInputDialog(null, "el numero es 5");
}
else {
JOptionPane.showInputDialog(null, "el numero no es5");
}
}
}
import java.util.Scanner;
import javax.swing.JOptionPane;
/**
*
* @author EQUIPO
*/
public class Agosto2022 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int numero,dato = 5;
numero = Interger.parseInt(JOptionPane.showInputDialog("digite un numero"));
if (numero==dato){
JOptionPane.showInputDialog(null, "el numero es 5");
}
else {
JOptionPane.showInputDialog(null, "el numero no es5");
}
}
}
Valora esta pregunta


0