Originally posted by Tom Blough:
Also be advised that if you put nothing in the csv file (i.e adfda,,aada), StringTokenizer will return TWO tokens, not THREE. The empty field will not be returned.
StringTokenizer is deprecated, no?
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.