java class implements comparable
<p>Why is Java <code>Comparable</code> used? Why would someone implement <code>Comparable</code> in a class? I've seen it I'm just wondering what it is for.</p>

<p>Can someone give me real life example when would you implement comparable?</p>
