Java- formatted input : <p>How can I accept input from STDIN in the format
<strong>HH:MM:SSAM</strong>
<strong>here in place of AM , PM can also be there</strong>
and display output in the form <strong>HH:MM:SS</strong></p>
