Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

toHexString and toOctalString

 
Harikrishna Gorrepati
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, How to understand the following toHexString and toOctalString methods(). Please advice

 
Stephan van Hulst
Bartender
Pie
Posts: 5539
53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
toHexString simply converts an integer into its hexadecimal string representation. toOctalString does the same thing, except the representation is octal, not hexadecimal.

If you do not understand what this means, look up what numeral system and radix are.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic