Update Distance.java

This should compile !!