The String tokenizer doesn't have a method to remove tokens. If you have a string like "the fish was eaten by the cat" rather than going through the overhead of creating more objects, just use the native method "replace" or "replaceall" that comes with the String object. You can replace the "the" with an empty string and thus take it out.
Reputation Points: 262
Solved Threads: 18
a.k.a inscissor
Offline 1,227 posts
since Feb 2002