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