Java ArrayList – how can I tell if two lists are equal, order not mattering? November 12, 2022 by Tarik Probably the easiest way for any list would be: listA.containsAll(listB) && listB.containsAll(listA)