Java course Homeworks