import java
public class main {
public static void main(String args[]) {
File file = new File(
FileReader fr;
try {
fr = new FileReader(file);
BufferedReader in = new BufferedReader(fr);// 包裝文件輸入流
String line;
try {
while ((line = in
String a = pinyin(line);
int shengdiaoLetter = Integer
a
a = a
+ a
System
}
} catch (IOException e) {
// TODO Auto
e
}
} catch (FileNotFoundException e) {
// TODO Auto
e
}// 創建文件輸入流
}
private static String pinyin(String input) {
int position =
int onlyaeiou =
input = input
// 單個韻母不必說
if (ntains(
onlyaeiou++;
}
if (ntains(
onlyaeiou++;
}
if (ntains(
onlyaeiou++;
}
if (ntains(
onlyaeiou++;
}
if (ntains(
onlyaeiou++;
}
if (ntains(
onlyaeiou++;
}
if (onlyaeiou ==
if (ntains(
position = input
}
if (ntains(
position = input
}
if (ntains(
position = input
}
if (ntains(
position = input
}
if (ntains(
position = input
}
if (ntains(
position = input
}
return input + position;
}
if (ntains(
position = input
return input + position;
}
// 沒有a母找o e
else if (ntains(
position = input
return input + position;
} else if (ntains(
position = input
return input + position;
}
// iu 並列標在後
if (ntains(
position = input
return input + position;
}
if (ntains(
position = input
return input + position;
}
if (ntains(
position = input
return input + position;
}
if (ntains(
position = input
return input + position;
}
if (ntains(
position = input
return input + position;
}
if (ntains(
position = input
return input + position;
}
if (ntains(
position = input
return input + position;
}
return input;
}
}
更多更全的java資訊
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26739.html