Programming exercises in Java language