como eu faria um laço de repetição (while) pra verificar se uma entrada no JOptionPane é um número inteiro?
em java..
Vlw...

Posted 02/03/2006, 16:50
firstNumber = JOptionPane.showInputDialog("Entre com o 1° numero:"); if (firstNumber instanceof Number) { ... }
Posted 02/03/2006, 16:58
Inconvertilbe types
Edição feita por: HellBurn, 02/03/2006, 17:01.
Posted 10/02/2010, 11:15
if ( x % 1) == 0 { //inteiro } else { //Não inteiro }
if (x mod 1) = 0 then 'inteiro else 'não inteiro end if
Edição feita por: MACUL, 10/02/2010, 11:19.
Posted 23/09/2017, 08:16
Posted 03/11/2017, 10:45
Posted 24/11/2017, 14:35
Posted 06/09/2022, 10:56
Posted 16/10/2022, 19:41
Posted 12/01/2023, 03:30
Posted 17/01/2023, 20:59
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)