Hi ALL
It is not clear to me as to what the method
" int compareTo(
String otherString) " does to a String, in the String Class. It states it does a Lexical Comparison, what is this ???
Does it simply compare the length of 2 strings and return a value less that 0 if the String passed in is shorter in length than the String from which you call the method, and a value greater than 0 if the passed String is greater ???
maybe I dont understand the
word Lexical !?!
All Code example greatly appreciated.
Thanks in advance.