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

Code Example 1

new ArrayList( Arrays.asList( new String[]{"abc", "def"} ) );

Code Example 2

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

Learn ReactJs, React Native from akashmittal.com