question: private List < String > toList ( String [ ] array ) { List < String > ret = new ArrayList < String > ( ) ; if ( array != null && array . length > 0 ) { ret . addAll ( Arrays . asList ( array ) ) ; } return ret ; }
target:  Returns a list of string by adding string in an array to it.