Comment revisions

This commit is contained in:
Arogon1
2019-12-10 23:35:54 -05:00
parent 862ac23992
commit 79d29c0bd3
10 changed files with 42 additions and 12 deletions

View File

@ -1,5 +1,7 @@
package Conversions;
//Hex [0-9],[A-F] -> Binary [0,1]
public class HexaDecimalToBinary {
private final int LONG_BITS = 8;
@ -9,7 +11,7 @@ public class HexaDecimalToBinary {
int conHex = Integer.parseInt(numHex, 16);
// Hex a Binary:
String binary = Integer.toBinaryString(conHex);
// Presentation:
// Output:
System.out.println(numHex + " = " + completeDigits(binary));
}