Dear friends,

the string tokenizer works with me well in the begining but how can i set the tokenizer to start processing another part if the code. see the code below :


String string = "Mike can not drive ";
.

System.out.println("\nthe token is :\n") ;

StringTokenizer stok = new StringTokenizer(string);
while (stok.hasMoreTokens())
{
System.out.println(stok.nextToken());

}


queue qu = new queue(stok.nextToken().length());




The problem is just with the last code. it seems that no tokens has been read. therfore, is there any method that read the tokens from the begining.


thanks