i\'m learning some Java and decided to do something simple but it keeps returning the wrong value... i don\'t know why i\'m sure there something that my untrained eye isn\'t pic
The out put is 2 because it checks the first if statement which turns out to be false. Then it moves to the if else where it is true as userxp is in fact >=level1xp so userlevel is set to 2 and printed. So as far as I can understand the codes objective, replace the ||(OR) with &&(AND)