JAVA.. How to sort array containing time
<p>Can anyone please tell me how to sort this array:</p>

<pre><code>String[] time = {"3:40 PM - 5:50 PM",  "4:40 PM - 5:50 PM", "2:00 PM - 3:00 PM",
                 "10:30 PM - 11:00 PM","1:00 PM - 2:30 PM", "6:30 PM - 7:00 PM",
                 "3:40 PM - 5:50 PM"};
</code></pre>
