Update Distance.java

Correct version