Used to represent a number as string, integer All possible characters of Java
•
Java
In integer In Java, there are the following codes:
/** * All possible chars for representing a number as a String */ final static char[] digits = { '0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z' };
I think all the numbers / characters you need are in the range of 0-9. The letters a to F. the letters (a, B, C, D, e and F) are used only when the numbers are expressed in base 16 (hexadecimal)
Why does Javadoc say "all possible characters"? Are letters from G to Z actually used? If the cardinality (we represent numbers) is greater than 16, I think they can be used
Solution
The toString method supports any cardinality (such as 20) to max_ Radix, defined as 36
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码