i really have this problem and i dont know how Character.isLetter work
and can you guys please help me with this code;
String num1, num2;
int numa, numb, div;
num1 = JOptionPane.showInputDialog("Enter first number");
num2 = JOptionPane.showInputDialog("Enter second number");
numa = Integer.parseInt(num1);
numb = Integer.parseInt(num2);
if(numb == 0){
JOptionPane.showMessageDialog(null,"The Answer is Undefine");}
else{
div = numa / numb;
JOptionPane.showMessageDialog(null,"The answer is: " + div);
System.exit(0);}
now... my problem is when you input a letter on the input dialog box a message box will appear saying "your input is invalid"...
please help me with this code...huhuhu