public static Object [ ] stringListToArray ( List < String > list ) { Object [ ] params = null ; if ( list != null ) { params = list . toArray ( new String [ list . size ( ) ] ) ; } return params ; }
Converts list of strings to an array .