Reread the API doc. Its explained there.
Why go past the first character of the two Strings if they are different.
Execute this:
System.out.println('a'-'r'); // compare first two characters
Type: Posts; User: Norm
Reread the API doc. Its explained there.
Why go past the first character of the two Strings if they are different.
Execute this:
System.out.println('a'-'r'); // compare first two characters
The API doc defines what the method returns.
What definition did google give for: lexicographical
Did you read the API doc for the method? It is explained there.