Q:

How to check whether empty or not every element of Varargs by recursive in Java?

I have a problem it is not just passing Varargs to function, it is how to use Varargs in recursive function, I need generic function objects(List... args) send the n-1 element back to function until the last object by recursive and check these objects either null or empty. if all objects are both null and empty need to return false else true. 
private boolean orObjects(List... args) {

    //all of the objects are null or empty
    if(args.length == 0)
    return false;

    //any of the objects is not null or not empty
    return true: orObjects(args.size(1,lenght)) //args.size(1,lenght) verbal 
}

A:

private boolean isNotEmptyOrNull(List list) {
    return list != null && !list.isEmpty() ? true : false;
}

private boolean orObjects(List... args) {

    if (args.length == 0)
        return false;

    return isNotEmptyOrNull(args[0]) ?
            true : orObjects(Arrays.copyOfRange(args, 1, args.length));

}

