if (stringList == null || stringList.trim().equals("")) return null; Vector list = new Vector(); StringTokenizer tokens = new StringTokenizer(stringList, ","); while (tokens.hasMoreTokens()) { String token = tokens.nextToken().trim(); if (!token.equals("")) list.addElement(token); } return list.isEmpty() ? new String[0] : (String[]) list.toArray(new String[list.size()]);
return getArrayFromList(stringList, ",");
	public static String[] getArrayFromList(String stringList) {		if (stringList == null || stringList.trim().equals("")) //$NON-NLS-1$			return null;		Vector list = new Vector();		StringTokenizer tokens = new StringTokenizer(stringList, ","); //$NON-NLS-1$		while (tokens.hasMoreTokens()) {			String token = tokens.nextToken().trim();			if (!token.equals("")) //$NON-NLS-1$				list.addElement(token);		}		return list.isEmpty() ? new String[0] : (String[]) list.toArray(new String[list.size()]);	}