Tag: java compareto

compareTo() String Example

November 11, 2014 · 2 min read
###### java.lang.String class comes with many methods to check two strings contain same characters in the same sequence. To do this, String class comes with equals(), compareTo(), equalsIgnoreCase() and compareToIgnoreCase() methods. This tutorial is on compareTo() String.

Comparable Example Java

August 10, 2011 · 2 min read
Before going through this program, it is advised to go through the **[interface Comparable](http://way2java.com/collections/interface-comparable/)** tutorial.