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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -