String Tokenizer And Arraya
I have an array for example
String  fruits= new String;
so after I load this with stuff from the database... fruits looks like this...
oranges; apples; kiwi; strawberry; banana; mango; pear;
I want to use stringtokenizer to parse this stuff out into tokens. So I declare an object of type stringtokenizer..
StringTokenizer parse = new StringTokenizer(fruits, ";", 0);
param1 = string
param2 = token delim
param3 says make each chunk of characters between the ; delimeter a token
Obviously this declaration is wrong, does anyone know how to pass StringTokenizer an array? Does it accept an array? or just a simple string.
Any help appreciated.