static List < String > getCommaTokens ( String inString ) { String input = inString . trim ( ) ; List < String > tokens = new ArrayList < String > ( ) ; String token ; while ( 0 < input . length ( ) ) { if ( COMMA == input . charAt ( 0 ) ) { input = input . substring ( 1 ) ; } token = getNextCommaToken ( input ) ; input = input . substring ( token . length ( ) ) ; tokens . add ( token . trim ( ) ) ; } return tokens ; }
Tokenizes the string into siblings .