Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.List;

public class Main {

    public static boolean isNullOrBlank(Object value) {
        if (null == value || value.equals("")) {
            return true;
        } else {
            return false;
        }
    }

    public static boolean isNullOrBlank(List value) {
        if (null == value || value.size() == 0) {
            return true;
        } else {
            return false;
        }
    }
}