public static String[] toStringArray(Collection<String> items) {
		String[] result = new String[items.size()];
		int i = 0;
		for(String s : items) {
			result[i++] = s;
		}
		return result;
	}
public static String[] toStringArray(Collection<String> items) {
		String[] result = new String[items.size()];
		int i = 0;
		for(String s : items) {
			result[i++] = s;
		}
		return result;
	}
public static String [ ] toStringArray ( Collection < String > items ) { String [ ] result = new String [ items . size ( ) ] ; int i = 0 ; for ( String s : items ) { result [ i ++ ] = s ; } return result ; }
Convert a collection of strings into a string array.

@param items
@return
Convert a collection of strings into a string array .