private static Iterator < String [ ] > buildIterator ( List < String > browsers ) { List < String [ ] > lData = Lists . newArrayList ( ) ; for ( String s : browsers ) { lData . add ( new String [ ] { s } ) ; } if ( lData . size ( ) == 0 ) { lData . add ( new String [ ] { "" } ) ; } return lData . iterator ( ) ; }
Build an String Iterator from String List .