Not surprised that you're not getting any tokens, seeing that you are iterating over the empty uniqTok Set in order to add stuff to the same Set. I guess you want to iterate over a new StringTokenizer(tok)

I also don't see why you need this manipulation of a "size" variable (that isn't declared anywhere?)
Can you use
Java 1.4 regexps?
Your instructor might consider this cheating though
- Peter
[ February 24, 2003: Message edited by: Peter den Haan ]