en_java去重排序

    @Test
public void tes5() { String[] strs ={"e",
"ee",
"ea",
"ei",
"ie",
"i",
"y",
"e",
"e",
"ea",
"a",
"e",
"ir",
"ar",
"or",
"ear",
"e",
"a",
"o",
"u",
"or",
"er",
"oo",
"o",
"u",
"ew",
"ui",
"oe",
"ou",
"oo",
"oul",
"u",
"o",
"a",
"al",
"au",
"aw",
"or",
"oar",
"ore",
"ar",
"oor",
"ou",
"al",
"ar",
"a",
"o",
"u",
"ou",
"a",
"ai",
"ay",
"ei",
"i",
"y",
"oy",
"oi",
"o",
"oa",
"oe",
"ow",
"ou",
"ow",
"ear",
"ere",
"ea",
"eer",
"are",
"air",
"ear",
"ere",
"our",
"oor",
"ure"};
Set se =new HashSet();
List newList = new ArrayList(new HashSet(Arrays.asList(strs))); Collections.sort(newList);
Iterator it = newList.iterator();
List<String> list = Arrays.asList(strs);
while (it.hasNext()){
Object itObj = it.next();
System.out.println(itObj);
} } @Test
public void tes6(){ String[] strs = {"i:", "ɪ", "e" ,"æ" ,"ɜ" ,"ə", "ʌ", "ɔ:", "ɒ", "u:" ,"ʊ", "ɑ:","aɪ","eɪ","aʊ","əʊ","ɔɪ","ɪə","eə","ʊə"};
for (String str : strs) {
System.out.println(str);
}
}
上一篇:用纯css改变默认的radio和checkbox的样式


下一篇:39 Ubuntu下配置python的vscode开发环境