hii mates can you please tell me the syntax of compareTo() [it is a string function]
Answers
Answered by
0
it is used for comparing two strings lexicographically, If both the strings are equal then this method returns 0 else it returns positive or negative value. The result is positive if the first string is lexicographically greater than the second string else the result would be negative
vasanthavallapureddy:
I asked syntax
Similar questions
Computer Science,
6 months ago
India Languages,
6 months ago
Social Sciences,
6 months ago
Social Sciences,
1 year ago
Math,
1 year ago