android 判断文本框是否为空的方法。

1.判断文本框是否为空的方法。

   public static boolean isEmpty(String str) {

        if (str == null || str.trim().length() == 0) {

            return true;

        } else {

            return false;

        }

}

posted on 2012-05-15 11:10  beyond1008  阅读(1132)  评论(0编辑  收藏  举报

导航