Update Exercise2.java