Arrays.aSlist

List<Integer> list = Arrays.asList(new Integer[] {2, 0, 1, 7});
List list = Arrays.asList(2, 0, 1, 7);
coder