Android Studio: Sort Array Lists Using Comparable and Comparator interfaces
In this video we will see how to make an object comparable and sort array lists using the comparable and comparator interfaces. To make an object comparable, we need to implement either the comparable interface and implement the compareTo method, or use the Comparator interface and implement its compare method. In this video we work … Read more