Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

tokenizertest1

By: ace on Feb 6th, 2010  |  syntax: None  |  size: 0.31 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public class TokenizerTest
  2. {
  3.     private StringTokenizer tokenizerTest;
  4.    
  5.     public TokenizerTest()
  6.     {
  7.         tokenizerTest = new StringTokenizer("This is a test");
  8.         while (tokenizerTest.hasMoreTokens())
  9.         {
  10.          System.out.println(tokenizerTest.nextToken());
  11.  
  12.     }
  13. }
  14.    
  15. }