code: public static List<String> toList( final String source,
                                         final String delim,
                                         final boolean returnDelims )
      {
          List<String> result = new ArrayList<String>();
          StringTokenizer tokenizer = new StringTokenizer( source, delim,
                  returnDelims );
  
          while ( tokenizer.hasMoreTokens() )
          {
              result.add( tokenizer.nextToken().trim() );
          }
  
          return result;
      }
docs: Different from split in that it can handle several single character
  delimiters.
  <p>
  
  @param source
  a <code>String</code> to be turned into a list.
  @param delim
  the potential delimiters of the tokens.
  @param returnDelims
  if true, the delimiters are returned in the list.
  @return split strings