Ok, I am at my wits end trying to figure out how to solve this.
What I have is a program which reads a .txt file, parses it, and the places each word in an ArrayList of type String. The problem is that some of these words are not words, they are numerical in value.
So for instance, they ArrayList may look like this:
[hello, 1, world, 4/5, this, 3/1, is, 7, a, test, 20]
What I want to do is go through each element in the list, check if it is numerical in value and remove it from the list completely.
Therefore the above example should look like this:
[hello, world, this, is, a, test]
I wish I had some code to show you, but what I have is a complete mess as I keep deleting things and generally stressing myself out over this problem when it seems so simple.
Any help would be greatly appreciated!
Thanks in advance.