public static String[] convertStrings(List<String> strings){
  String[] ret=new String[strings.size()];
  for (int i=0; i < ret.length; i++) {
    ret[i]=strings.get(i);
  }
  return ret;
}

public static String [ ] convertStrings ( List < String > strings ) { String [ ] ret = new String [ strings . size ( ) ] ; for ( int i = 0 ; i < ret . length ; i ++ ) { ret [ i ] = strings . get ( i ) ; } return ret ; }
converts the provided string list to a string array .
