update solution2 for 1_1.java