You have a variety of options for taking in user input via a GUI. I'll list out a few but keep in mind, there are others I'm not mentioning:

1) Create a JOptionPane.showInputDialog(null,...