Update example3.java