This utility will return the boolean value after comparing two vector objects.
/** * Compares two vector objects *@param two vector objects that needs to be compared *@return boolean value */ public static boolean matchVector( Vector v1, Vector v2 ) { boolean result = true; if ( v1.size() != v2.size() ) return false; for (int i = 0; i < v1.size(); i++ ) { String t1 = (String)v1.elementAt(i); String t2 = (String)v2.elementAt(i); if ( !t1.equals(t2) ) { result = false; break; } } return result; }