Driver Code
public static void main ( String args [ ] ) { String S = " aBc " ; HashMap < Character , Character > M = new HashMap < Character , Character > ( ) ; M . put ( ' a ' , ' $ ' ) ; M . put ( ' B ' , ' # ' ) ; M . put ( ' c ' , ' ^ ' ) ; M . put ( ' d ' , ' & ' ) ; M . put ( '1' , ' * ' ) ; M . put ( '2' , ' ! ' ) ; M . put ( ' E ' , ' @ ' ) ;