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
You should use && (AND) instead of || (OR) in your conditions.
Try else if (userxp >=level1xp && userxp
In your code, the execution stops after the first else statement, which is true.
if (userxp <=level1xp){
userlevel=1;
}else if (userxp
EDIT: as pointed out in the owther answers, you do not need the first condition for the lower bound of the level since it is already satisfied by the previous else statement.