Solutions of exercises in Core Java course