Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

public class Main {
    /**
     * Retorna true se a colleciton for null ou vazia.
     */
    public static <T> boolean isEmpty(final Collection<T> collection) {
        return collection == null || collection.size() == 0;
    }
}