title: StringTokenizer separate tokens using a char
body: <p>How do I separate tokens in a StringToekenizer object taking a string s as a parameter?</p>
  
  <p>so:</p>
  
  <pre><code>String s = input.readLine();
  char tokenSeparator = ' '; //can be any value other than white space.
  StringTokenizer str = new StringTokenizer(s);
  //separate tokens by the variable char tokenSeparator;
  while (str.hasMoreTokens) ...
  </code></pre>