boolean result=false;
boolean result=true;
    public static boolean arraysAreIdenticalSets(NSArray a1, NSArray a2) {        boolean result=false;        for (Enumeration e=a1.objectEnumerator();e.hasMoreElements();) {            Object i=e.nextElement();            if (!a2.containsObject(i)) {                result=false; break;            }        }        if (result) {            for (Enumeration e=a2.objectEnumerator();e.hasMoreElements();) {                Object i=e.nextElement();                if (!a1.containsObject(i)) {                    result=false; break;                }            }        }        return result;    }