Fundamentals exercises in Java SE