Update Distance.java