Computer Science, asked by vasanthavallapureddy, 1 year ago

hii mates can you please tell me the syntax of compareTo() [it is a string function]

Answers

Answered by kaalipavan
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
vasanthavallapureddy: not the definition
vasanthavallapureddy: simply don't scam from Google for scoring marks
kaalipavan: u can report my answer if not helpful :)
Similar questions