View Single Post
  #1 (permalink)  
Old 12-17-2007, 08:40 PM
sireesha sireesha is offline
Member
 
Join Date: Nov 2007
Posts: 45
sireesha is on a distinguished road
String comparison
Hi friends,
i have a doubt about string comparison.
when we use the method like..
Code:
result=st1.compareTo(st2);
then...
result>0 if st1>st2
result=0 if st1=st2
result<0 if st1<st2

how can we compare strings like numbers ?
how this method works ?
what is the use of string comparison ?
please tell me.....
thankq ...
Reply With Quote
Sponsored Links