hmm If your new to loops, Stick to simple code such as JOptionPane

for example a string varible getting data from the optionpane



...

_strString = JOptionPane.ShowInputDialog(null,...