Easy programming exercises in Java