How can I convert required string in Java? : <p>convert given string as per requirement. abc123 need to be convert 012onetwothree</p>

<p>What is the best way to implement such kind of program, i used the enum for this to implement </p>
