Level up in java game? How? : I am programming RPG game, and I want that that every time my character reaches 50 XP (50,100,150,200 etc.) he should level one up. 

How can I do this?
Thanks for your help!