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