public static String [ ] strListToArray ( List < String > list ) { if ( list == null ) return new String [ 0 ] ; return list . toArray ( new String [ list . size ( ) ] ) ; }
Transfer a String List to String array