title: How to determine if the specific time is between given range?
body: <p>Problem: I have a list containg hours, for example:
  08:15:00
  08:45:00
  09:00:00
  12:00:00
  ...
  application is allowing user to make an appointment for a specific hour let'say: 8:15:00, each meeting takes half an hour.</p>
  
  <p>Question: How to determine if there is a slot needed for appointment like this? I know that Calendar class have methods before() nad after(), but it doesn'solve my problem. I mean if there is appointment at 12:00 and another one at 12:00, how to prevent before making another one at 12:15?</p>
  
  <p>edit:</p>
  
  <p>I've tried using methods I mentioned before, like:</p>
  
  <pre><code>Calendar cal1 = Calendar.getInstance(); // for example 12:00:00
  Calendar cal2 = Calendar.getInstance(); // for exmaple 12:30:00
  Calendar userTime = Calendar.getInstance(); // time to test: 12:15:00
  
  if(user.after(cal1)&amp;&amp; user.before(cal2)){
  ... // do sth
  }
  </code></pre>