有人遇到过这样的情况吗?用equals 也是一样。
LocalInfo.get(0).getphone是从sqlite 联系人表中查询出来的字串。service 是从后台服务器那里返回接收到的字串。不知道这个要怎么比较。
认证高级PHP讲师
What is the method of contentEquals? Is there any impact if trim() is not added?
contentEquals(StringBuffer sb) is a method that compares strings to the specified StringBuffer. Is your method correct? To compare strings directly, please use equals
What is the method of contentEquals? Is there any impact if trim() is not added?
contentEquals(StringBuffer sb) is a method that compares strings to the specified StringBuffer. Is your method correct? To compare strings directly, please use equals