title: What do the return values of Comparable.compareTo mean in Java?
body: <p>What is the difference between returning <code>0</code>, returning <code>1</code> and returning <code>-1</code> in <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html#compareTo-T-" rel="noreferrer"><code>compareTo()</code></a> in Java?</p>