Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

compareto in java string

******Java String compareTo()******

  The Java String class compareTo() method compares the given 
  string with the current string lexicographically. 
  It returns a positive number, negative number, or 0.
  ___________________________________________
  	if s1 > s2, it returns positive number  
	if s1 < s2, it returns negative number  
	if s1 == s2, it returns 0  
  ___________________________________________
  
  
 
PREVIOUS NEXT
Tagged: #compareto #java #string
ADD COMMENT
Topic
Name
2+5 =