Get char value in Java
•
Java
How to get the utf8 code of a char in Java?
This is a table at more values
I tried character Getnumericvalue (a), but it gives me 10 instead of 97. Why?
This seems very basic, but any help will be appreciated!
Solution
Char is actually a numeric type containing Unicode values (utf-16, specifically, you need two characters to represent characters other than BMP) You can use it to do everything, you can do an int
Character. Getnumericvalue () attempts to interpret characters as numbers
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
二维码