Skip to content

Commit 3b70b8c

Browse files
authored
Merge pull request TheAlgorithms#764 from ibahadiraltun/patch-1
Debug HexaDecimalToDecimal.java
2 parents 459434c + 2dcabed commit 3b70b8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Conversions/HexaDecimalToDecimal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public class HexaDecimalToDecimal {
66

77
// convert hexadecimal to decimal
88
public static int getHexaToDec(String hex) {
9-
String digits = "012345678910ABCDEFF";
9+
String digits = "0123456789ABCDEF";
1010
hex = hex.toUpperCase();
1111
int val = 0;
1212
for (int i = 0; i < hex.length(); i++) {

0 commit comments

Comments
 (0)