Java tutorial
//package com.java2s; public class Main { public static synchronized boolean StrIsNull(String str) { return null == str || str.trim().length() <= 0 ? true : false; } }