Java tutorial
//package com.java2s; public class Main { /** * @param s * @return Boolean type */ public static boolean isNullOrEmpty(final CharSequence s) { return (s == null || s.equals("") || s.equals("null") || s.equals("NULL")); } }