• Post Reply Bookmark Topic Watch Topic
  • New Topic

Mathematical Operation on Hex-Integer  RSS feed

 
sa bu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,

I am trying to add two Hex-Integer e.g. "356a192b7913b04c54574d18c28d46e6395428ab" and "04545b969af70c70e6379239ea701801a1dfcf1c".

Its throwing NumberFormatException.

Can some one suggest me any solution...?

Best Regards
Salman
 
pankaj patil
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

can you paste your code.
i am trying but getting compile time error
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They are too long to fit into int or long; put them into BigInteger.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!