can we convert integer into character

后端 未结 6 1697
北海茫月
北海茫月 2020-12-19 08:06

we can convert character to an integer equivalent to the ASCII value of the same but can we do the reverse thing ie convert a given ASCII value to its character equivalent?

6条回答
  •  失恋的感觉
    2020-12-19 08:50

    Character.toChars:

    public static char[] toChars(int codePoint)
    

    Converts the specified character (Unicode code point) to its UTF-16 representation stored in a char array.

提交回复
热议问题