calculate no of records in selected time period using java
<p>i hav below time records Stored  in a array.</p>

<pre><code>8.10.22 AM
8.20.35 AM
8.56.46 AM
8.44.39 AM
</code></pre>

<p>So i want how many records in <strong>8.00 AM</strong> to <strong>9.00 AM</strong> time period. how can i do that using java? Here is my code...</p>

<pre><code>BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream("c:/sample.csv")
                      while (reader.ready()) {
                 String line = reader.readLine();
                 String[] values = line.split(",");
                 String ti=values[5];
    DateFormat dateformat = new SimpleDateFormat("hh:mm:ss");
    Date date = dateformat.parse(ti);  
             }
</code></pre>
