`

StringUtil

 
阅读更多

/**

 * This is a util method for String object

 *

 * @author tom.fan@citi.com

 * @date Mar 30, 2009

 */

public class StringUtil

{

      public static boolean isNullOrEmptyString(String str)

      {

            if (str == null) return true;

            if (str.trim().length() == 0) return true;

            return false;

      }

}

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics