exiting a while loop with a string
Hello all...I seem to be having some trouble exiting a while loop with a string. This feels really embarrassing but here is my code:
private static String strDifficulty()
strDif = JOptionPane.showInputDialog("What difficulty setting would you like? Hard or easy?");
while (!strDif.equalsIgnoreCase("easy") || !strDif.equalsIgnoreCase("hard"));
strDif = JOptionPane.showInputDialog("Please enter in either 'hard' or 'easy'. Thank you.");
unfortunately I'm stuck in a while loop. any help would be greatly appreciated! Thanks all :).