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.
2 parents 459434c + 2dcabed commit 3b70b8cCopy full SHA for 3b70b8c
Conversions/HexaDecimalToDecimal.java
@@ -6,7 +6,7 @@ public class HexaDecimalToDecimal {
6
7
// convert hexadecimal to decimal
8
public static int getHexaToDec(String hex) {
9
- String digits = "012345678910ABCDEFF";
+ String digits = "0123456789ABCDEF";
10
hex = hex.toUpperCase();
11
int val = 0;
12
for (int i = 0; i < hex.length(); i++) {
0 commit comments