, Java API String, . StringTokenizer , (, API Java, , , StringTokenizer . , , , , , , , , . , , , Javadoc, , , , StringTokenizerbut that doesn’t mean t make it less annoying.
But I think the Guava argument expands even wider than the unexpected behavior in this case. The Java API as a whole is absurdly inconsistent in how it defines spaces, which is why they created it CharMatcher.WHITESPACE. Check out all of the various definitions here by Guva Kevin Burrillin.
source
share