while (back1.equals ("Yes") == true || back1.equals ("yes") == true);
if it is this while loop then it should be
while (back1.equals ("Yes") || back1.equals ("yes") );
or
while (back1.equalsIgnoreCase ("Yes"));
you do not need the "== yes" part as the above evaluation will be true and go into the loop or false and not.