I want to remove the array int[]{1,2,3,4]
from the list
.
We can remove it from the list
by the code list.remove(2)
(2 is the index). But how we can remove this array by the function remove(Object obj)
I thank you so much.
List list = new ArrayList();
list.add("hello");
list.add(10);
list.add(new int[] { 1, 2, 3, 4 });