java中数组转list

int intArray[] = {1,2,3};

List iList = Arrays.stream(intArray).boxed().collect(Collectors.toList());

你可能感兴趣的:(java中数组转list)