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