Hi,
If I understand you right, you need to separate only String values from your array list.
I can suggest you the following way:
As all the ArrayList elements are Objects you can use toString() method fot them and get Strings for all of your ArrayList elements, even for Integers. Then you can simply check whether current arraylist_element.toString() characters are entirely 'numeric' or not, e.g. character is between '0' and '9'. If all the characters are 'numeric' then you have a integer number and you can remove it from your ArrayList.
Hope this helps you :)
Best,
Anna
|