判断多个参数

/**

* @param obj 判断传入参数是否为空,如果为空则返回false ,如果正确则返回true

* @return

*/

public static boolean isParamNull(Object... obj){

for (Object object : obj) {

if(object == null || "".equals(object.toString())){

return true;

}

}

return false;

}

你可能感兴趣的:(参数)