We can use ArrayUtils in Apache Commons Lang library for this
purpose.
Sample code is:
List intList = Arrays.asList(ArrayUtils.toObject(intArray));
The other option would be to use a for loop and explicitly adding
integers to a List.
Sample code is:
int[]intArray = {10,20,30};
List
for (int i: intArray) {
intList.add(i);
}
https://www.techiedelight.com/convert-int-array-list-integer/