![]() If they have different characters at one or more index That is a valid index for both strings, or their lengths are different, If two strings areĭifferent, then either they have different characters at some index This is the definition of lexicographic ordering. The equals(Object) method would return true. The result is zero if the stringsĪre equal compareTo returns 0 exactly when Positive integer if this String object lexicographicallyįollows the argument string. Lexicographically precedes the argument string. String object is compared lexicographically to theĬharacter sequence represented by the argument string. The character sequence represented by this The comparison is based on the Unicode value of each character in
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |