java错误笔记之判断字符知否为空出错

错误示例

url==""||url==null

正确示例

url.isEmpty()

错误示例为JAVA玄学问题所致,有时候会判断错误

猜你喜欢

转载自www.cnblogs.com/max-hou/p/12897139.html