Dear friends

can any body tell me why this code is not working. when i compile it, it gives me some errors about the array of tokenizer
Code:
   
  //.......................Tokenizer function.............
  strindex = 2;
   int[] size = new int[1000]; 
   StringTokenizer stok = new StringTokenizer(string[1000]);
   
   for(int i= 0; i< strindex;i++)
   {  
           stok[i] = StringTokenizer(string[i]);
          size[i] = stok[i].countTokens();
   }
[ArchAngel added CODE tags]