static public String toString(ArrayList value){
  String str="";
  for (int i=0; i < value.size(); i++) {
    if (i > 0)     str+=" ";
    str+=(String)value.get(i);
  }
  return str;
}

static public String toString ( ArrayList value ) { String str = "" ; for ( int i = 0 ; i < value . size ( ) ; i ++ ) { if ( i > 0 ) str += " " ; str += ( String ) value . get ( i ) ; } return str ; }
converts an arraylist into a string separated by spaces . the parser should be able to re - create the arraylist from this string .
