am fixing the debugin ex. from school fixed everything except to show the reversed array to show in output message. i am totally lost as what to do now ..
entry = JOptionPane.showInputDialog(null,
"Enter any word\n" +
"Enter " + STOP + " when you want to stop");
while(!(entry.equals(STOP))) // xxx quits
{
array[x] = entry;
entry = JOptionPane.showInputDialog(null,
"Enter another word\n" +
"Enter " + STOP + " when you want to stop");
}
for( y = x; y >= 0; y--)
{
message.append(array[y]);
message.append("\n");
}
JOptionPane.showMessageDialog(null, message);
any suggestion / comment / help would greatly

New Topic/Question
Reply



MultiQuote





|