Hi, I'm having a problem with this part of my code:

} while ((menu2.equals("4") == false) || ((menu2.equals("3")) == false));

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?

Thanks :)

i think you are terminating this with ;

i think you are terminating this with ;

What do you mean? :S

What if menu2 is "4"?
The first test will won't be false but the second one will true because 4 != 3
Try AND.
You want to stay in the loop if menu2 != 3 AND its != 4

What if menu2 is "4"?
The first test will won't be false but the second one will true because 4 != 3
Try AND.
You want to stay in the loop if menu2 != 3 AND its != 4

Worked like a charm - thanks :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.