Bookmark Topic Watch Topic
  • New Topic

Mathematical Operations On Hex-Strings  RSS feed

 
sa bu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi guys thanks for your help. i want to know that how can i add or subtract my these hex-Strings as they are too big to convert (experiencing NumberFormatException).

I need Help and guideLine.

Thanks and best Regards.
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Use java.math.BigInteger. It even has a constructor that takes a string and radix, so all you need to do is create some BigInteger objects and call the right operator methods on them.
 
Campbell Ritchie
Marshal
Posts: 56553
172
  • Mark post as helpful
  • send pies
  • Report post to moderator
. . . and don't ask the same question three times.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37496
546
Eclipse IDE Java VI Editor
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!