Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

java compareTo

String s1 = "2"
String s2 = "5"
s1.compareTo(s2); //returns difference between 2 Strings
3 	//returns positive 3 since s2 string is higehr than s1 by 3
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #compareTo
ADD COMMENT
Topic
Name
4+8 =