爱问知识人 爱问教育 医院库

java代码如何将汉字转换成拼音?

首页

java代码如何将汉字转换成拼音?

java代码如何将汉字转换成拼音?

提交回答

全部答案

    2017-07-28 10:35:16
  •   package com。sucre;
    //所需导入的jar包在下侧下载
    import net。sourceforge。pinyin4j。PinyinHelper;
    import net。sourceforge。pinyin4j。format。
      HanyuPinyinCaseType; import net。sourceforge。pinyin4j。format。HanyuPinyinOutputFormat; import net。sourceforge。pinyin4j。format。
      HanyuPinyinToneType; import net。sourceforge。pinyin4j。format。HanyuPinyinVCharType; import net。sourceforge。pinyin4j。format。
      exception。BadHanyuPinyinOutputFormatCombination; public class ChineseToEnglish { //------------------------将汉字转换为全拼------------------------------- public static String getPingYin(String src){ char[] t1 = null; t1=src。
      toCharArray(); String[] t2 = new String[t1。length]; HanyuPinyinOutputFormat t3 = new HanyuPinyinOutputFormat(); t3。setCaseType(HanyuPinyinCaseType。
      LOWERCASE); t3。setToneType(HanyuPinyinToneType。WITHOUT_TONE); t3。setVCharType(HanyuPinyinVCharType。WITH_V); String t4=""; int t0=t1。
      length; try { for (int i=0;i。

    林***

    2017-07-28 10:35:16

类似问题

换一换
  • 系统软件 相关知识

  • 电脑网络技术
  • 电脑网络

相关推荐

正在加载...
最新资料 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):