Homework 1 of JAVA