I am having problems with displaying the second input dialog. Can someone help me!
import javax.swing.JOptionPane;
public class GetInputFromKeyboardJOptionPane{
public static void main(
String[] args) {
String name = "";
name = JOptionPane.showInputDialog("Please enter your name");
String msg = "Hello " + name + "!";
JOptionPane.showMessageDialog(null, msg);
String age = "";
int ageint = Integer.parseInt(age);
age = JOptionPane.showInputDialog("Please enter your age");
if (ageint > 100){
String msg2 = "Hello " + name + "You are old!";
JOptionPane.showMessageDialog(null, msg2);
}else{
String msg3 = "Hello " + name + "You are young!";
JOptionPane.showMessageDialog(null, msg3);
}
}
}