I have a string list array that contains strings. Either the values will be a name or number. For example the contents could be:
stringList[0]="Mary"
stringList[1]="John"
stringList[2]="4564321"
stringList[3]="Steven"
I want to append the contents of the list to a string which I have done through a simple loop but if a number is encountered I want that number to be popped out and handled in a different method and then have the original loop continue looking for strings and appending. Essentially I want to append the non numbers and take the numbers and do something else with them. What functions or tricks can I do so when it is going through the list it will be able to identify a string as a number?