joptionpane.showinputdialog return value code example Example: Joptionpane.showinputdialog JOptionPane.showInputDialog("Who is bob?");