[SOLVED] Questions about StringTokenizer
So I'm looking at this StringTokenizer and I understand how it works when you just put in a String. It gives you what's between the white space. But there's something else you can do with it. You can use delimiters which is where I'm a little confused on how to create this tokenizer. What I want to do is get the tokens from a String such as:
And I want to be able to print each token out like this...
String s = "It's a nice day, don't you think?";
It s a nice day don t you think
So basically the tokenizer not only skips the white space, it skips punctuation marks as well, which you send in to the tokenizer. How can I do that?
Btw, I can't put the link to the java doc of StringTokenizer on here yet, don't have enough posts lol silly...