Check out example codes for "arraylist add method". It will help you in understanding the concepts better.

Code Example 1

public void add(int index, E element)	// no return value

Learn ReactJs, React Native from akashmittal.com