0

How to create ArrayList from array in Java

Java
String[] array = new String[] {"One", "Two", "Three"};
List<String> list = new ArrayList<>(Arrays.asList(array));
add comment
Suggest a different solution or add another example