Possible Duplicate:
Convert a hex string to a byte in Java
Here, I need to convert alphanumeric String to byte value ,for example:
String str ="1b" to byte value.I tried by using getbytes,(Byte.valueOf(str)), (Byte.parseByte(str)).
All the commands showed an exception called
java.lang.NumberFormatException
help please