public static void noNullElements(Object[] objects, String msg) {
    """
	Validates that the array contains no null elements
	@param objects the array to test
	@param msg message to output if validation fails
    """
        for (Object obj : objects)
            if (obj == null)
                throw new IllegalArgumentException(msg);
    }
public static void noNullElements(Object[] objects, String msg) {
        for (Object obj : objects)
            if (obj == null)
                throw new IllegalArgumentException(msg);
    }
public static void noNullElements ( Object [ ] objects , String msg ) { for ( Object obj : objects ) if ( obj == null ) throw new IllegalArgumentException ( msg ) ; }
Validates that the array contains no null elements
@param objects the array to test
@param msg message to output if validation fails
Validates that the array contains no null elements