List to int java code example
Example 1: list to int array in java 8
int[] array = list.stream().mapToInt(i->i).toArray();
Example 2: convert list of string to int
results = map(int, results)
int[] array = list.stream().mapToInt(i->i).toArray();
results = map(int, results)