Update Distance.java

reviewed some syntatical errors and updated again !!