convert List<int> to integer array c# code example Example: list to int array in java 8 int[] array = list.stream().mapToInt(i->i).toArray();