New w/ working with my own classes and main site, with demo - while loop not working

I am fairly new with Java. I am in my first programming class. We are working on our own classes and the below is the main program from a set of two (one poles from the other) and for some reason, when I volunteered today to present my homework, my while statement did not work. (It worked earlier the night before) I was not using my own computer when presenting. The "while" statement should send for validation if someone enters a number outside of 1,2,3 or 4. NOW it won't even let me past this question and is not recognizing a correct answer for input. Can someone test it and see if it works? I have copied and pasted BELOW this main program, the one that works with it. I thought maybe it was my Eclipse program, but it doesn't seem to work even when I RECODE it all from scratch in another program... any ideas?

When using OR operators in conditions, the full condition will be true if any ONE of the sub conditions is true.
If an AND operator is used, then ALL sub conditions must be true for the full expression to be true.

Re: New w/ working with my own classes and main site, with demo - while loop not work

Norm, thanks for a quick reply. I have to figure out how to tag it and then I will - Both while statements should be the same, so it doesn't matter - the first is the one that wasn't working to begin with.. If I enter "1", it automatically goes to the validation instead of going on to ask the other queries.

Re: New w/ working with my own classes and main site, with demo - while loop not work

Well - it says that while entry is not equal to 1 or etc... I want it to work when something outside of the 1-4 is used. But it starts re-asking the "validation" part even when a "1" (which is a correct response) is entered.

Re: New w/ working with my own classes and main site, with demo - while loop not work

Norm, for some reason, my husband (who does programming - but not Java) and I believe it WAS working last night as while (iStyle != 1 || iStyle != 2 || iStyle != 3 || iStyle != 4).
We revised it to: while (iStyle < 1 && iStyle > 4) -- and it is working. However, he is very concerned that if this above worked last night and does not now, there is a problem.

Re: New w/ working with my own classes and main site, with demo - while loop not work

Okay, we changed it to OR... the program is functioning fine now. Thanks so much for your help. For some crazy reason only the second program is formatting right though I DID tag them both I thought. Anyway, I found my go to place for help. I appreciate it so much! God bless you!