public static boolean isListElementsEmpty ( final List < String > l ) { for ( final String s : l ) { if ( s != null && s . trim ( ) . length ( ) > 0 ) { return false ; } } return true ; }
Checks a list of &lt ; String&gt ; elements to see if every element in the list is empty .