title: Java Check if time in between 2 times
body: <p>I have 24 hours timeslots define as below, the question is how to determine if a specific time is in between one of the timeslots. any suggestions?</p>
  <p>example:</p>
  <pre><code>String time = &quot;01:30&quot;;
  the matched timeslot is:  _0100_0159
  
  
  
  private String _0000_0059; &lt;-- has an int value in it e.g 5
  private String _0100_0159;
  private String _0200_0259;
  private String _0300_0359;
  private String _0400_0459;
  private String _0500_0559;
  </code></pre>