Check out example codes for "delete element from arraylist". It will help you in understanding the concepts better.

Code Example 1

//Create the ArrayList
List<Integer> al = new ArrayList<>(); 
//Add the items
al.add(10);
al.add(18);
//Remove item(1 = 2and item in list)
al.remove(1);

Code Example 2

//Create the ArrayList
List<Integer> al = new ArrayList<>(); 
//Add the items
al.add(10);
al.add(18);
//Remove item(1 = 2nd item in list)
al.remove(1); 
>> [10]

Learn ReactJs, React Native from akashmittal.com