HW2_2.java

homework 2-2