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