public static String[] stringArrayFromString(String string,char delimiter){
  List<String> result=new ArrayList<String>(10);
  if (StringUtils.isNotBlank(string)) {
    RaptorStringTokenizer tok=new RaptorStringTokenizer(string,String.valueOf(delimiter),false);
    while (tok.hasMoreTokens()) {
      String token=tok.nextToken();
      result.add(token);
    }
  }
  return result.toArray(new String[0]);
}

public static String [ ] stringArrayFromString ( String string , char delimiter ) { List < String > result = new ArrayList < String > ( 10 ) ; if ( StringUtils . isNotBlank ( string ) ) { RaptorStringTokenizer tok = new RaptorStringTokenizer ( string , String . valueOf ( delimiter ) , false ) ; while ( tok . hasMoreTokens ( ) ) { String token = tok . nextToken ( ) ; result . add ( token ) ; } } return result . toArray ( new String [ 0 ] ) ; }
returns a string [ ] of strings from a string that is formatted in what tostring ( string [ ] ) returns .
