July 14th, 2003, 12:20 PM
When I uncomment this loop, the page just hangs forever.
I suspect it's looping infintly.
It says on javadocs tha hasMoreTokens() returns a boolean value, so when there's no more tokens, shouldn't it return false and kill the loop?
int i = 0;
del_arr[i] = tokens.nextToken();
July 14th, 2003, 12:55 PM
Yes, it should as long as it runs out of tokens.
How big is the String that you are tokenizing?
What is your delimeter?
Please, post your code include the setup of the Tokenizer so that we can get a better Idea of whats going on.
July 14th, 2003, 01:05 PM
it's something like 6542,6546,6542
I figured it out though. I wasn't calling nextToken(), so it was always evaluating to true.
My problem now is that the array i'm trying to store the token in is giving me a headeache.