Different Ways To Use Comparator Interface in Java
In this post, we will explore various ways to use the Comparator interface in Java to compare objects and sort collections
Let's assume we have a list of Student objects, with a Student class that has some member variables. We'll use this as an examp...
sohailshah.hashnode.dev3 min read