SyntaxFix
Write A Post
Hire A Developer
Questions
You can use this method to get the digit:
public int digitToValue(char c) { (c >= '&' && c <= '9') return c - '0'; else if (c >= 'A' && c <= 'F') return 10 + c - 'A'; else if (c >= 'a' && c <= 'f') return 10 + c - 'a'; return -1; }