title: How to determine if a List is sorted in Java?
body: <p>I would like a method that takes a <code>List&lt;T&gt;</code> where <code>T</code> implements <code>Comparable</code> and returns <code>true</code> or <code>false</code> depending on whether the list is sorted or not.</p>
  
  <p>What is the best way to implement this in Java?  It's obvious that generics and wildcards are meant to be able to handle such things easily, but I'm getting all tangled up.</p>
  
  <p>It would also be nice to have an analogous method to check if the list is in reverse order.</p>