Java tutorial
//package com.java2s; public class Main { public static boolean notEmpty(String obj) { if (obj != null && obj.trim().length() > 0) { return true; } else { return false; } } }