To find out if a class, interface or method is deprecated, you look it up in the API documentation. The documentation does not say the class is deprecated. One of its contructors is, however.
While the class isn't formally depracated, its API states: StringTokenizer is a legacy class that is retained for compatibility reasons although its use is discouraged in new code. It is recommended that anyone seeking this functionality use the split method of String or the java.util.regex package instead.
Originally posted by Jeff Albrechtsen: While the class isn't formally depracated, its API states: StringTokenizer is a legacy class that is retained for compatibility reasons although its use is discouraged in new code. It is recommended that anyone seeking this functionality use the split method of String or the java.util.regex package instead.
Hmmm...
But the question was about StreamTokenizer... a class only a compiler writer could love.