Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//  it under the terms of the GNU Lesser General Public License as published by

import java.util.Collection;

public class Main {
    public static boolean isNotNullOrEmpty(Collection c) {
        return !isNullOrEmpty(c);
    }

    public static boolean isNullOrEmpty(Collection c) {
        boolean isNullOrEmpty = false;
        if (null == c || c.size() == 0) {
            isNullOrEmpty = true;
        }
        return isNullOrEmpty;
    }
}