Java courses homework.