Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.Collection;

public class Main {

    public static <T> boolean isNull(Collection<T> collection) {
        boolean isNull = true;
        if (collection != null && collection.size() != 0) {
            isNull = false;
        }
        return isNull;
    }

    public static <T> boolean isNull(Object[] objectArr) {
        boolean isNull = true;
        if (objectArr != null && objectArr.length != 0) {
            isNull = false;
        }
        return isNull;
    }
}