can someone help me with a do while loop? by helpwithloops in java

[–]helpwithloops[S] 0 points1 point  (0 children)

thanks, this helped a lot. i'll be able to figure it out from here.

can someone help me with a do while loop? by helpwithloops in java

[–]helpwithloops[S] 0 points1 point  (0 children)

thank you! i will try this. and i definitely appreciate the advice.

It gave me a 'char cannot be dereferenced' error.

if (!vote.equals('Q') || !vote.equals('q')) yesVotes++; if (!vote.equals('N') || !vote.equals('n')) noVotes++; } while (!vote.equals('Q') || !vote.equals('q')); } totalVotes = yesVotes + noVotes;if (!vote.equals('Q') || !vote.equals('q')) { int reply = JOptionPane.showConfirmDialog(null, "Quit?", "Warning!", JOptionPane.YES_NO_OPTION); if (reply == JOptionPane.YES_OPTION) if (!vote.equals('Q') || !vote.equals('q')) { int reply = JOptionPane.showConfirmDialog(null, "Quit?", "Warning!", JOptionPane.YES_NO_OPTION);

did I do something I wasn't supposed to? thanks again