Java application which reverse a giving string.