I\'ve been looking for a method that operates like Arrays.equals(a1, a2), but ignoring the element order. I haven\'t been able to find it in either Google Colle
Arrays.equals(a1, a2)
If you want to ignore order, then how about testing sets for equality?
new HashSet(c1).equals(new HashSet(c2))