justin cater
Posts: 19616
Nickname: justin78
Registered: Mar, 2011
|
Justin Cater is executive editor at Java Code Geeks
|
|
|
|
Java Comparator Example
|
Posted: Jul 15, 2014 10:26 AM
|
|
|
This post originated from an RSS feed registered with Java Buzz
by justin cater.
|
Original Post: Java Comparator Example
Feed Title: Java Code Geeks
Feed URL: http://feeds.feedburner.com/JavaCodeGeeks
Feed Description: Java 2 Java Developers Resource Center
|
Latest Java Buzz Posts
Latest Java Buzz Posts by justin cater
Latest Posts From Java Code Geeks
|
|
In this example we will show how to use java.util.Comparator interface. java.util.Comparator is an interface which is used for sorting objects in Java. The compare(Object o1, Object o2) method of Comparator interface needs to be implemented for this purpose, which compares two objects and returns an integer, depending on the comparison: positive, if o1 is […]
Read: Java Comparator Example
|
|