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);
        }
    }
昨日已逝正在输入···
赞赏支持!!!
分享到: 更多
原文地址:https://www.cnblogs.com/rhxuza1993/p/7405580.html