code: public static void ensureNotEmptyContent( String name, boolean trim, String[] value )
      {
          ensureNotEmpty( name, value );
          for ( int i = 0; i < value.length; i++ ) {
              ensureNotEmpty( value[i] + "[" + i + "]", value[i] );
              if ( trim ) {
                  ensureNotEmpty( value[i] + "[" + i + "]", value[i].trim() );
              }
          }
      }
docs: Ensures that the string array instance is not null and that it has entries that are not null or empty.