Few Java excercises, to prepare myself before java-intern.