code: public static List<String> tokenizeToList( String s, char separator )
    {
      if( s == null || s.length() == 0 )
      {
        return null;
      }
      int start = 0;
      int stop = 0;
      ArrayList<String> tokens = new ArrayList<String>();
      while( start <= s.length() )
      {
        stop = s.indexOf( separator, start );
        if( stop == -1 )
        {
          stop = s.length();
        }
        String token = s.substring( start, stop );
        tokens.add( token );
        start = stop + 1;
      }
  
      return tokens;
    }
docs: Split up a string into tokens delimited by the specified separator
  character.  If the string is null or zero length, returns null.
  
  @param s         The String to tokenize
  @param separator The character delimiting tokens
  
  @return A List of String tokens, or null is s is null or 0 length.