hey guys, i was wondering if anyone could tell me how to separate individual digits of an integer in order to store those individual digits into an array? I need to create a circular shift method so I was just going to separate the digits of the number, put them in an array, and then manipulate that array to get the circular shift.
I was thinking of using a tokenizer, however; I don't know what to set the delimiter to because the digits are obviously one after another.
This is a visual representation of what I'm talking about if you can't follow my babbling.
number(int): 1234
array with individual digits: {[1][2][3][4]}
so like I said, any help with separating the individual digits to store in an array would be greatly appreciated.