Sry for not being very clear to explain my problem. Hope i improve with time hehe.
Ok thanks for your help. I knew that it works in this way but i thought that maybe another method might exist to...
Type: Posts; User: mvonb17
Sry for not being very clear to explain my problem. Hope i improve with time hehe.
Ok thanks for your help. I knew that it works in this way but i thought that maybe another method might exist to...
My problem is that i wish that the while loops keeps looping until the 'code' inputted is equal to one of the pre-defined code: code1, code2, code3.
System.out.print("CODE: ");
code =...
what wrong whit this statment:
while(!code.equals(code1||code2||code3))
{
System.out.print("Ivalid code. Please enter code again: ");
...
oucch that's a tricky one! thanks for your feedback!
In this program the user is buying some online stuff. A menu is displayed with the available stuff. The user is asked to enter the code of the object he needs. Until the user enter "XX" the program...