Is there a way to check if an ArrayList contains an array of objects? For example I have an arrayList
ArrayList<Integer[]> myList = new ArrayList<Integer[]>();
mylist.add(new Integer[]{5,5});
mylist.add(new Integer[]{1,1});
I would like to check if it contains a specific Integer array. Like:
Integer[] myArray = new Integer[]{5,5};
if I use the myList.containts(myArray); it should return true, but it checks if the Integer object is containted, not the array Values.
Is there a way to check the values?