title: Conversion from 12 hours time to 24 hours time in java
body: <p>In my app, I have a requirement to format <code>12 hours</code> time to <code>24 hours</code> time. What is the method I have to use?</p>
  
  <p>For example, time like <code>10:30 AM</code>. How can I convert to 24 hours time in java?</p>