I have tried this. Now I want to convert it back to Original string.
This is not possible with MD5. It is a one-way hash function.
In order to be able to encrypt and decrypt, you need to use an encryption/decryption algorithm like AES.
See Java™ Cryptography Architecture (JCA) Reference Guide for more information.