Comparator Interface in Java Collection Framework

Published: 08 February 2015
on channel: Telusko
33,740
148

Sorting Elements in Collection with your own logic
Comparator is a interface in java. Comparator interface is used to order the objects of user-

defined class. It contains two methods compare() and equals(). Sorting Elements in Collection

with your own logic.

Check out our website: http://www.telusko.com

Follow Telusko on Twitter:   / navinreddy20  

Follow on Facebook:
Telusko :   / teluskolearnings  
Navin Reddy :   / navintelusko  

Follow Navin Reddy on Instagram:   / navinreddy20  

Subscribe to our other channel:
Navin Reddy :    / @navinreddy  
Telusko Hindi :
   / @teluskohindi  

Subscribe to the channel and learn Programming in easy way.
Java Tutorial for Beginners: https://goo.gl/p10QfB

C Tutorial Playlist : https://goo.gl/8v92pu

Android Tutorial for Beginners Playlist : https://goo.gl/MzlIUJ

XML Tutorial : https://goo.gl/Eo79do

Design Patterns in Java : https://goo.gl/Kd2MWE

Socket Programming in Java : https://goo.gl/jlMEbg

Spring MVC Tutorial : https://goo.gl/9ubbG2

OpenShift Tutorial for Beginners : https://goo.gl/s58BQH

Spring Framework with Maven : https://goo.gl/MaEluO

Sql Tutorial for Beginners : https://goo.gl/x3PrTg

String Handling in Java : https://goo.gl/zUdPwa

Array in Java : https://goo.gl/uXTaUy

Java Servlet : https://goo.gl/R5nHp8

Exception Handling in Java : https://goo.gl/N4NbAW