public static boolean isEmpty(String str){if("".equals(str)||str==null){return true;}else{return false;}}public static boolean isNotEmpty(String str){if(!"".equals(str)&&str!=null){return true;}else{return false;}}
本文共 262 字,大约阅读时间需要 1 分钟。
public static boolean isEmpty(String str){if("".equals(str)||str==null){return true;}else{return false;}}public static boolean isNotEmpty(String str){if(!"".equals(str)&&str!=null){return true;}else{return false;}}
转载于:https://www.cnblogs.com/xlwh/p/8591937.html