code: public static void validateNotEmpty( Object[] arrayToCheck, String argumentName )
          throws NullArgumentException
      {
          validateNotNull( arrayToCheck, argumentName );
          if( arrayToCheck.length == 0 )
          {
              throw new NullArgumentException( argumentName + IS_EMPTY );
          }
      }
docs: Validates that the array instance is not null and that it has entries.
  
  @param arrayToCheck The object to be tested.
  @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