当前位置: 技术问答>java相关
两个String怎样看是否相等?
来源: 互联网 发布时间:2015-02-26
本文导语: 为什么str1!=str2一直是真的。 | boolean equals(String Str) Compares this string to the specified object. boolean equalsIgnoreCase(String anotherString) Compares this String to anothe...
为什么str1!=str2一直是真的。
|
boolean equals(String Str)
Compares this string to the specified object.
boolean equalsIgnoreCase(String anotherString)
Compares this String to another String, ignoring case considerations.
Compares this string to the specified object.
boolean equalsIgnoreCase(String anotherString)
Compares this String to another String, ignoring case considerations.