Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

public class Main {
    @SuppressWarnings("rawtypes")
    public static boolean isBlank(Collection c) {
        return c == null || c.size() == 0;
    }

    @SuppressWarnings("rawtypes")
    public static boolean isBlank(Map m) {
        return m == null || m.size() == 0;
    }

    public static boolean isBlank(Object[] a) {
        return a == null || a.length == 0;
    }
}