See which of your colleagues or former colleagues are already on Java Link: Check out the Contact Finder
Java - General » Core Java » what exactly do String.compareTo() method

176 Views
  0 Replies

0
Vote Vote
what exactly do String.compareTo() method
Share  
 Type: Professional, Report if fun topic
Sagar
Sagar Picture
16 Posts
back to top
Posted 30-06-2011Reply

the value 0 if the argument is a string lexicographically equal to this string; a value less than 0 if the argument is a string lexicographically greater than this string; and a value greater than 0 if the argument is a string lexicographically less than this string.



Since in Java Doc description is given like this. Just I want to know what exactly mean by lexicographically order.

0
Vote Vote
Share  
 Type: Professional, please report if fun topic

Recent Activity in Forums

05-04-2012.
05-04-2012.
Kanchana posted a new forum topic in
27-02-2012.
11-02-2012.
Kanchana posted a new forum topic in
11-02-2012.