Hi, I'm having a problem with this part of my code:
The compiler seems to be ignoring it for me... is there something wrong? I basically want the loop to end if the String menu2 is either "4" or "3". What exactly am I doing wrong?
} while ((menu2.equals("4") == false) || ((menu2.equals("3")) == false));
x.equals(y) is the same as x.compareTo(y) == 0.
Remove the ==false part of the codes and try again. The "equals" method returns true if equal, false if not, whereas the compare functions are numeric based--0 if equal, positive if longer, negative if shorter.