title: How can I reverse the string and parse it with '-' in Java
body: <p>I have to reverse the given string and parse it with &quot;-&quot;.
  For example.</p>
  <p>INPUT: <strong>abcde</strong><br />
  OUTPUT : <strong>e-d-c-b-a</strong></p>
  <p>Any simple solutions?</p>