how to convert arraylist of string to integer code example Example: convert arraylist to array int templist.stream().mapToInt(i->i).toArray();