public static String[] split(CharSequence self){
  StringTokenizer st=new StringTokenizer(self.toString());
  String[] strings=new String[st.countTokens()];
  for (int i=0; i < strings.length; i++) {
    strings[i]=st.nextToken();
  }
  return strings;
}

public static String [ ] split ( CharSequence self ) { StringTokenizer st = new StringTokenizer ( self . toString ( ) ) ; String [ ] strings = new String [ st . countTokens ( ) ] ; for ( int i = 0 ; i < strings . length ; i ++ ) { strings [ i ] = st . nextToken ( ) ; } return strings ; }
convenience method to split a charsequence ( with whitespace as delimiter ) . similar to tokenize , but returns an array of string instead of a list .
