Solutions to the exercises for the Java course