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 {
    /**
     * Indique si une collection est null ou vide.
     *
     * @param c
     * @return boolean
     */
    public static boolean isNullOrEmpty(Collection c) {
        if (c == null) {
            return true;
        }

        return c.isEmpty();
    }
}