convert array back into list using toList java code example
Example 1: convert array to list java
Arrays.asList(array);
Example 2: java array to list
int[] spam = new int[] { 1, 2, 3 };
Arrays.stream(spam)
.boxed()
.collect(Collectors.toList());