Last active
September 17, 2019 10:23
-
-
Save seunggabi/ac24a5fd1077c38bf13bab2b90e011bf to your computer and use it in GitHub Desktop.
decimalToHex.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String decimalToHex(int decimal, Integer length) { | |
return String.format("%0"+length+"x", decimal); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment