code: public static int splitString(String line, char[][][] buff) {
  		int len=line.length();
  		int wordCount=0;
  		int pos=0;
  		while(pos<len) {
  			// Skip past blank space
  			while(pos<len&&line.charAt(pos)<=' ') pos++;
  			int start=pos;
  			// Skip to the next blank space
  			while(pos<len&&line.charAt(pos)>' ') pos++;
  			if(pos>start) wordCount++;
  		}
  
  		char[][] words=buff[0];
  		if(words==null || words.length<wordCount) buff[0]=words=new char[wordCount][];
  
  		int wordPos=0;
  		pos=0;
  		while(pos<len) {
  			// Skip past blank space
  			while(pos<len&&line.charAt(pos)<=' ') pos++;
  			int start=pos;
  			// Skip to the next blank space
  			while(pos<len&&line.charAt(pos)>' ') pos++;
  			if(pos>start) {
  				int chlen=pos-start;
  				char[] tch=words[wordPos++]=new char[chlen];
  				System.arraycopy(line.toCharArray(), start, tch, 0, chlen);
  			}
  		}
  
  		return wordCount;
  	}
docs: Splits a <code>String</code> into a <code>String[]</code>.