I need help with breaking out of a loop. I know it's something simple, but I can't remember. Here's my code.
for(count = 0; count < inputArray.length; count++)
{
inputArray[count] = JOptionPane.showInputDialog(
null,
"Please input a name or exit: ",
"Input Name",
JOptionPane.QUESTION_MESSAGE);
if(inputArray[count] == "Exit")
{
break;
}
}