Converting an Array to a Collection
import java.util.Arrays; import java.util.List; public class Main { public static void main(String[] argv) throws Exception { int[] array = new int[10]; // Fixed-size list List list = Arrays.asList(array); } }