Set of simple exercises in JAVA