SyntaxFix
Write A Post
Hire A Developer
Questions
Tags
I'm trying to convert a number from an integer into an another integer which, if printed in hex, would look the same as the original integer.
For example:
Convert 20 to 32 (which is 0x20)
Convert 54 to 84 (which is 0x54)
This question is related to java integer hex
java
integer
hex
Source: Stackoverflow.com