Here you can find the source of anyNulls(Object... items)
public static boolean anyNulls(Object... items)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean anyNulls(Object... items) { for (Object item : items) { if (item == null) { return true; }/* w w w. j av a 2 s. c om*/ } return false; } }