code: public int charDistance(char a, char b) {
      return Math.abs(Character.getNumericValue(a) - Character.getNumericValue(b));
    }
docs: Compute the distance between the two chars based on the ASCII symbol codes.
  
  @param a The first char.
  @param b The second char.
  @return The distance.