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