You should replace StringTokenizer, deprecated class, by split() method of String if you want to split a sentence in parts or, generally, use java.util.Scanner to do. If you see StringTokenizer API documentation:
"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."
You can see Scanner API documentation here:
http://java.sun.com/javase/6/docs/api/java/util/Scanner.html