字符串比较: String的方法: int compareTo(String anotherString) Compares two strings lexicographically. boolean equals(Object anObject) Compares this string to the specified object. boolean equalsIgnoreCase(String anotherString) Compares this String to another String, ignoring case considerations.
String的方法:
int compareTo(String anotherString)
Compares two strings lexicographically. boolean equals(Object anObject)
Compares this string to the specified object. boolean equalsIgnoreCase(String anotherString)
Compares this String to another String, ignoring case considerations.
字符串比较:?什么意思?