question: public static String [ ] toStringArray ( Enumeration < String > enumeration ) { if ( enumeration == null ) { return null ; } List < String > list = Collections . list ( enumeration ) ; return list . toArray ( new String [ list . size ( ) ] ) ; }
target:  Copy the given Enumeration into a String array. The Enumeration must contain String elements only.