convert array string to array int code example
Example 1: convert list of integer to array in java
List<Integer> al = new ArrayList<Integer>();
Integer[] arr = new Integer[al.size()];
arr = al.toArray(arr);
Example 2: how to convert array to int
int i, k = 0;
for (i = 0; i < n; i++)
k = 10 * k + a[i];