protected static String[] listToArray(String value){
  StringTokenizer tok;
  Vector<String> list;
  list=new Vector<String>();
  tok=new StringTokenizer(value,",");
  while (tok.hasMoreTokens())   list.add(tok.nextToken());
  return (String[])list.toArray(new String[list.size()]);
}

protected static String [ ] listToArray ( String value ) { StringTokenizer tok ; Vector < String > list ; list = new Vector < String > ( ) ; tok = new StringTokenizer ( value , "," ) ; while ( tok . hasMoreTokens ( ) ) list . add ( tok . nextToken ( ) ) ; return ( String [ ] ) list . toArray ( new String [ list . size ( ) ] ) ; }
turns the comma - separated list into an array
