Update Program6.java