private static void validateArray(final Object array){
  if (array == null) {
    throw new IllegalArgumentException("The Array must not be null");
  }
  Validate.isTrue(Array.getLength(array) != 0,"Array cannot be empty.");
}

private static void validateArray ( final Object array ) { if ( array == null ) { throw new IllegalArgumentException ( "The Array must not be null" ) ; } Validate . isTrue ( Array . getLength ( array ) != 0 , "Array cannot be empty." ) ; }
checks if the specified array is neither null nor empty .
