hi there;
i am current convert from hex to ascii using this syntax:
<b>
String cr = "1b"; // carriage return
char chrcr;
chrcr = (char) Integer.parseInt(cr,16);
</b>
may i know how to change from decimal to char straight away? is that possible? wat i mean the cr instead of putting hex value, i put decimal value which is "27".
thanks in advance.
i am current convert from hex to ascii using this syntax:
<b>
String cr = "1b"; // carriage return
char chrcr;
chrcr = (char) Integer.parseInt(cr,16);
</b>
may i know how to change from decimal to char straight away? is that possible? wat i mean the cr instead of putting hex value, i put decimal value which is "27".
thanks in advance.