can you put a for statement in a joptionpane. showinputdialog code example Example: Joptionpane.showinputdialog JOptionPane.showInputDialog("Who is bob?");