比较字符串是否相等的最好办法

Objects.equals(str1, str2)
这种方法在参数为空时不会报错

猜你喜欢

转载自blog.csdn.net/weixin_39536750/article/details/80262998
今日推荐