code: public static void validateNotEmptyContent( String[] arrayToCheck, boolean trim, String argumentName )
          throws NullArgumentException
      {
          validateNotEmpty( arrayToCheck, argumentName );
          for( int i = 0; i < arrayToCheck.length; i++ )
          {
              validateNotEmpty( arrayToCheck[ i ], arrayToCheck[ i ] + "[" + i + "]" );
              if( trim )
              {
                  validateNotEmpty( arrayToCheck[ i ].trim(), arrayToCheck[ i ] + "[" + i + "]" );
              }
          }
      }
docs: Validates that the string array instance is not null and that it has entries that are not null or empty.
  
  @param arrayToCheck The object to be tested.
  @param trim         If the elements should be trimmed before checking if empty
  @param argumentName The name of the object, which is used to construct the exception message.
  
  @throws NullArgumentException if the array instance is null or does not have any entries.
  @since 0.5.0, January 18, 2008