hex to char conversion problem...
hello,
I have a a following piece of code, where I am trying to conver 0x72 to character 'r' :
String hexStr ="0x72";
String charString =new Character((char)Integer.parseInt(hexStr, 16)).toString();
I am getting following exception:
java.lang.NumberFormatException: For input string:"0x72"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
Am I doing something wrong?
Any help will be appreciated...
Thanks!

