Check out example codes for "java String[] to List". It will help you in understanding the concepts better.

Code Example 1

import java.util.*;
String[] strings = {"Lula", "José Aparecido", "Carlos Minc"};
List<String> list = Arrays.asList(strings);

Code Example 2

input = "aaa,bbb,ccc";

// To array
String[] arr = input.split(",");

// To fixed-size list
List<String> l = Arrays.asList(input.split(","));

// To ArrayList
List<String> l2 = new ArrayList<>(Arrays.asList(input.split(",")));

Learn ReactJs, React Native from