Java tutorial
//package com.java2s; public class Main { public static boolean isNull(CharSequence text) { if (text == null || "".equals(text.toString().trim()) || "null".equals(text)) return true; return false; } }