public static Vector findFields (String line, char delim) {  Vector fields = new Vector(); int start = 0; int end = 0; boolean DONE = false;  while (!DONE) { end = line.indexOf(delim, start); if (end == NOTFOUND) { DONE = true; end = line.length(); }  String f = line.substring(start, end);  f = f.trim(); if ((f.length() > 0)) { fields.addElement(new String(f)); } start = end+1;  } return fields;
public static Vector findFields(String line, char delim) {  Vector fields = new Vector(); int start = 0; int end = 0; boolean DONE = false;  while (!DONE) { end = line.indexOf(delim, start); if (end == NOTFOUND) { DONE = true; end = line.length(); }  String f = line.substring(start, end);  f = f.trim(); if ((f.length() > 0)) { fields.addElement(new String(f)); } start = end + 1;
    public static Vector findFields (String line, char delim) {		Vector fields = new Vector();	int start = 0;	int end = 0;	boolean DONE = false;		while (!DONE) {	    end = line.indexOf(delim, start);	    if (end == NOTFOUND) {		DONE = true;		end = line.length();	    }	    	    String f = line.substring(start, end);	    	    f = f.trim();	    if ((f.length() > 0)) {		fields.addElement(new String(f));	    }	    start = end+1;	    	}	return fields;	// end of findFields    }