• Java汉字转拼音和首字母

    Java实现汉字转拼音功能,包括 首字母和全拼 for (int j = 0, int len = str.length(); j < len; j++) { char word = str.charAt(j); String[] pinyinArray = PinyinHelper.toHanyuPinyinStringArray(word); if (pinyinArray != null) { convert += pinyinArray[0].charAt(0); } else { convert += word; } } return convert;

    0
    82
    194KB
    2017-11-02
    9
上传资源赚积分or赚钱