I need to compare two list of objects irrespective of the order
Example:
List1 = { object1, object2, object3, object4 }
List2 = { object4, object1, object2, object3 }
compare(List1, List2) should return true.
I need to compare two list of objects irrespective of the order
Example:
List1 = { object1, object2, object3, object4 }
List2 = { object4, object1, object2, object3 }
compare(List1, List2) should return true.
Here is simple example for compare two lists in Java,
http://beginnersbook.com/2013/12/how-to-compare-two-arraylist-in-java/