Update Exercise6.java