public static int hammingDistance(Vector vec1, Vector vec2) {
    { int result = 0;

      { int i = Stella.NULL_INTEGER;
        int iter000 = 0;
        int upperBound000 = vec1.length() - 1;

        for (;iter000 <= upperBound000; iter000 = iter000 + 1) {
          i = iter000;
          if (!(((IntegerWrapper)((vec1.theArray)[i])) == ((IntegerWrapper)((vec2.theArray)[i])))) {
            result = result + 1;
          }
        }
      }
      return (result);
    }
  }