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
Post a Comment