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;

      }

}

 

你可能感兴趣的:(String)