Check out example codes for "convert array of int to arraylist java". It will help you in understanding the concepts better.

Code Example 1

int[] ints = {1, 2, 3};
List<Integer> intList = new ArrayList<Integer>(ints.length);
for (int i : ints)
{
    intList.add(i);
}

Learn ReactJs, React Native from akashmittal.com