puntito
Programmer
- Mar 22, 2006
- 18
Hi
My problem is:
I receive a hexadecimal number like a String "ff000001123456"
And I have to say to the program that it is an hexadecimal number.
I´ve tried this:
but i have an error
java.lang.NumberFormatException: For input string: "ff000001123456"
and with this:
I have compiling problems with the JAR.
So, I need a method to convert that String to an hexadecimal value.
Someone who know how to do it and could help me??? Please !!!
Thanks
My problem is:
I receive a hexadecimal number like a String "ff000001123456"
And I have to say to the program that it is an hexadecimal number.
I´ve tried this:
Code:
intValue = Integer.decode("0x"+gaga);
java.lang.NumberFormatException: For input string: "ff000001123456"
and with this:
Code:
import com.sun.org.apache.xerces.internal.impl.dv.util.HexBin;
...
HexBin.decode(text)
...
So, I need a method to convert that String to an hexadecimal value.
Someone who know how to do it and could help me??? Please !!!
Thanks