array([]) to [] 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());
Arrays.asList(array);
int[] spam = new int[] { 1, 2, 3 };
Arrays.stream(spam)
.boxed()
.collect(Collectors.toList());