public String[] createArray(String toArray,String splitChar)

I've probably just never found it, but as far as i know there isnt a "split" style method in java to convert a delimited string into an array, so thats what this method does.


public String[] createArray(String toArray,String splitChar) {
	String newArray[] = new String[300];
	String tmpWord = "";
	int trackWord=0;
	for(int i=0;i<toArray.length();i++) {
		String tmpLtr = toArray.charAt(i) + "";
		if(tmpLtr.compareTo(splitChar)>0) {
			tmpWord+=toArray.charAt(i);
		} else {
			tmpWord = tmpWord.toUpperCase();
			newArray[trackWord] = tmpWord;
			trackWord++;
			tmpWord="";
		}
	}
	
	return newArray;
}
slayer.office home