Skip to content

Commit a827a5a

Browse files
committed
Fix
1 parent 46e3a6b commit a827a5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/thealgorithms/conversions/HexaDecimalToBinary.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public String convert(String numHex) {
5151
* @return the padded binary string with a minimum length of 8
5252
*/
5353
public String completeDigits(String binNum) {
54-
final int BYTESIZE = 8;
55-
while (binNum.length() < BYTESIZE) {
54+
final int byteSize = 8;
55+
while (binNum.length() < byteSize) {
5656
binNum = "0" + binNum;
5757
}
5858
return binNum;

0 commit comments

Comments
 (0)