i.e if ArrayList contains coordinates {0, 0} remove them.
Code test below fails as expected.
ArrayList<int[]> array = new ArrayList<>();
int[] arr1 = new int[]{0, 0};
int[] arr2 = new int[]{1, 1};
array.add(arr1);
array.add(arr2);
System.out.println("Before " + array.contains(arr1)); // true
int[] arr3 = new int[]{0, 0};
array.remove(arr3);
System.out.println("After " + array.contains(arr1)); //true
System.out.println("After " + array.contains(arr1)); //true- actually that printsAfter false, since you are removing the exact same array instance you added to the List.array.contains(arr3)just before removing itremoveonly removes first found element (if it would work with arrays)