Update exam2.java