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 459434c commit 2dcabedCopy full SHA for 2dcabed
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