This video is an introduction to java comparable vs comparator series. In this video, we will understand the basics to use the sort() of the Collections class. This video covers :

1)Creating and adding elements to a list(ArrayList).
2)Sorting a list of numbers/string.
3)We will do it using the Collections.sort().

Note: String and Integer class implement the comparable interface.

#java 

The Basics to Use The Sort() Of The Collections Class
1.05 GEEK