Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile 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: 5371
52
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic