how to add 0x00 bits to hexadecimal if it's less than 8 bits?

by Daniel Tampubolon   Last Updated July 12, 2019 14:26 PM - source

I have this logic, where if text is less than 8 bits hex decimal will add new bits 0x00 to 8 bits


 Example:     Hex    = 3132        ADDHEX = 00003132

can anyone explain the source code of this logic, I'm still a beginner, please help the masters?

and I want to ask one more thing, if use code


is it true to change the value "0x00" to "\0030" so that the output of 0 is 30

please help me, I was chased deadline :(

Tags : java netbeans-8

Related Questions

System.out.print() prints unit test logs to output

Updated November 11, 2017 14:26 PM

Netbeans keeps on restarting

Updated September 19, 2019 23:26 PM