We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46e3a6b commit a827a5aCopy full SHA for a827a5a
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 BYTESIZE = 8;
55
- while (binNum.length() < BYTESIZE) {
+ final int byteSize = 8;
+ while (binNum.length() < byteSize) {
56
binNum = "0" + binNum;
57
}
58
return binNum;
0 commit comments