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