I found a way to easily split strings using java 1.3 that I haven't seen before, and it doesn't involve StringTokenizer.
First, download the 1.4.2 api and extract ASCII.java, Matcher.java, and Pattern.java from src.zip. Next, change the package to whatever you want and then compile them. After that, just make a StringSplit class that looks something like:
public class StringSplit {
public static String[] split(String str, String regex)
{
return Pattern.compile(regex).split(str, 0);
}
}
This works a lot nicer than the StringTokenizer method in many circumstances.
Just thought I'd share that