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

Code Example 1

new ArrayList<>(Arrays.asList(array));

Code Example 2

new ArrayList<>(Arrays.asList(array))

Code Example 3

Syntax: public static List asList(T... a)
// Returns a fixed-size List as of size of given array. 
// Element Type of List is of same as type of array element type.
// It returns an List containing all of the elements in this 
// array in the same order. 
// T represents generics

Code Example 4

List<Element> list = Arrays.asList(array);

Learn ReactJs, React Native from