We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbdfd96 commit efa5305Copy full SHA for efa5305
src/main/java/com/thealgorithms/conversions/HexaDecimalToBinary.java
@@ -51,8 +51,8 @@ public String convert(String numHex) {
51
* @return the padded binary string with a minimum length of 8
52
*/
53
public String completeDigits(String binNum) {
54
- final int BYTE_SIZE = 8;
55
- while (binNum.length() < BYTE_SIZE) {
+ final int BYTESIZE = 8;
+ while (binNum.length() < BYTESIZE) {
56
binNum = "0" + binNum;
57
}
58
return binNum;
0 commit comments