code: public static boolean sameList(final Vector v, final Object[] a) {
      if (v == null || a == null || v.size() != a.length) {
        return false;
      }
      for (int i = 0; i < a.length; i++) {
        final Object o = a[i];
        if (!o.equals(v.elementAt(i))) {
          return false;
        }
      }
      return true;
    }
docs: Compares the contents of an array and a Vector for equality.