What does the following mean:
… and StringTokenizer respects exactly five whitespace
characters and nothing else.
http://code.google.com/p/guava-libraries/wiki/StringsExplained#Splitter
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Presumably it means that
StringTokenizerwill break on\n,\r, space, TAB, and formfeed, by default. From the source for the simplest constructor:You see the five whitespace characters listed there. This is not really a big deal, though, because you can specify your own delimiters using one of the other constructors.
StringTokenizerhas plenty of other problems; the default set of whitespace characters is the least of its worries.