Java tutorial
//package com.java2s; public class Main { public static boolean checkStrNotEmpty(String str) { if (null != str && !str.replace(" ", "").equals("")) { return true; } return false; } }