OK, what about

while ((!endResponse.equalsIgnoreCase("Yes")) & (!endResponse.equalsIgnoreCase("nO"))){
System.out.print("Sorry did not understand your response, try that again.");...