Bookmark Topic Watch Topic
  • New Topic

Hex values format problem  RSS feed

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi All,

I am reading a file which contains EBCIDC data.I am reading the file byte by byte. After obtaining the byte I am getting it's corresponding integer value.Now I need to get the hex values of the corresponding integer in 0x format.

Integer.toHexString is giving me values like A0,B1 etc.

Any inputs, plz share.

Regards

Nikhil
 
Marshal
Posts: 58454
178
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't post the same question on two fora.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!