开发者

Total characters (not code units) of a String in Java considering Supplementary Characters

How can you obtain the total characters of a String, considering that it could have supplementary characters which takes 2 code units to be encoded.

Example:

String strTest = "a
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜