Search Tokens in java -


i trying write code searching things in project , need split string words , words search tokens . example if "how you" string split how, , you, , h, ho, how, a, ar, are, y, yo , you. can explain me how in java?

string.split() ideal choice - takes regular expressions -- can used define simplest of patterns complex ones .

as per java api doc -

stringtokenizer legacy class retained compatibility reasons although use discouraged in new code. recommended seeking functionality use split method of string or java.util.regex package instead.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -