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 {
    /**
     * Checks the collection for content.
     * 
     * @param coll The collection to test.
     * @return True if the list is null or empty, false if there is any content.
     */
    public static boolean isNullOrEmpty(Collection<?> coll) {
        return coll == null || coll.isEmpty();
    }
}