Dear all ,
I am having a hex
string as "d41d8cd98f00b204e9800998ecf8427e" ..
i need to convert this hex string into long
I did something following
String s="d41d8cd98f00b204e9800998ecf8427e";
long strLong= Long.parseLong(s,16);
System.out.println(strLong);
But at the runtime i am getting following error :
java.lang.NumberFormatException: For input string: "d41d8cd98f00b204e9800998ecf8427e"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Long.parseLong(Long.java:415)
Thanks in advance