title: Can I use a Comparator without implementing Comparable?
body: <p>Is it possible to use a Comparator without implementing the Comparable class? For instance, if I had the following:</p>
  
  <pre><code>MyClass {
  
       Comparator comp;
  
       OrderedListInheritance(Comparator c) {
            this.comp = c;
       }
  
  }
  </code></pre>
  
  <p>Could I then use comp to compare two objects? If so, how would I go about doing that? </p>
  
  <p>Thanks...</p>