判斷字符串是否為空:
public class StrUtils { public static boolean isEmpty(String str){ if(str==null||"".equals(str)){ return true; } return false; } }
文章版權歸作者所有,未經(jīng)允許請勿轉載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉載請注明本文地址:http://www.ezyhdfw.cn/yun/65149.html
閱讀 1785·2021-11-16 11:44
閱讀 2480·2021-10-11 11:07
閱讀 4275·2021-10-09 09:41
閱讀 738·2021-09-22 15:52
閱讀 3269·2021-09-09 09:33
閱讀 2820·2019-08-30 15:55
閱讀 2336·2019-08-30 15:55
閱讀 894·2019-08-30 15:55