What does compareTo() function do in java?Explain with e.g..
Answers
Answered by
1
hey mate,
here is your answer
in java
compareTo() function compares the length of the two strings.it returns Boolean value.
#be Brainly
here is your answer
in java
compareTo() function compares the length of the two strings.it returns Boolean value.
#be Brainly
Shrieya:
But when I'm trying it on computer it is returning integer value.
Similar questions