title: check given date is between two dates in List
body: <p>I have <code>LinkedList</code> of generic <code>Date</code></p>
  
  <pre><code>LinkedList&lt;Date&gt; dateList = new LinkedList&lt;Date&gt;();`
          try
          {
          a= sdf.parse("21/03/2000");
          b= sdf.parse("21/03/2006");
          c= sdf.parse("18/09/2008");
          }catch(ParseException pe)
          {
              System.out.println("not a date formate");
          }
          dateList.add(a);
          dateList.add(b);
          dateList.add(c);
  </code></pre>
  
  <p>if a user enters a date i.e 12/05/2002, so the user should get a prompt that the entered date is between <code>21/03/2000</code> and <code>21/03/2006</code> and also it should give the answer that "the given date is coming after <code>21/03/2000</code>".</p>
  
  <p>I tried sorting. but didn't work. new to <code>Date</code> class.</p>