String cnStr = "测试数据";
char[] chars = cnStr.toCharArray();
for(int i = 0;i < chars.length;i ++ ){
System.out.print(chars[i] + " : " + CnCharCount.getStrokeCount(chars[i]));
}
cntinker支持包下载
http://code.google.com/p/cntinker/downloads/list
https://github.com/liubin0821/cntinker
本文介绍如何使用Java对字符串进行字符处理,并通过示例展示了CNTinker包的功能,包括字符计数和包下载链接。
8056

被折叠的 条评论
为什么被折叠?



