Why is Java Comparable used? Why would someone implement Comparable in a class? What is a real life example where you need to implement comparable
Comparable
For example when you want to have a sorted collection or map