Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

string compareto vs equals java

compareTo() when you need to know the difference in length between strings 
that start with the same sequence of characters.
  
  System.out.println("sumit".compareTo("timus"));//-1
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #string #compareto #equals #java
ADD COMMENT
Topic
Name
9+8 =