I'm struggling with finding an efficient way to split the digits of a number into a list.
For example, for the number:
23464646237
and the
ArrayList <Integer> vector;
i want to insert in each position of the array, a digit from the number, therefore obtaining the following output:
vector = {2,3,4,6,4,6,4,6,2,3,7}
How can i do this in a clean and efficient way in Java ?
Thanks in advance