static public String[] toArray(ArrayList value){
  String[] strArray=new String[value.size()];
  for (int i=0; i < value.size(); i++) {
    strArray[i]=(String)value.get(i);
  }
  return strArray;
}

static public String [ ] toArray ( ArrayList value ) { String [ ] strArray = new String [ value . size ( ) ] ; for ( int i = 0 ; i < value . size ( ) ; i ++ ) { strArray [ i ] = ( String ) value . get ( i ) ; } return strArray ; }
converts the given arraylist into an array of strings .
