I have two Collections in a Java class.The first collection contains previous data, the second contains updated data from the previous collection.
I would like to c
If not worried about cases like (2,2,3), (2,3,3):
static boolean equals(Collection lhs, Collection rhs) { return lhs.size( ) == rhs.size( ) && lhs.containsAll(rhs) && rhs.containsAll(lhs); }