博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
en_java去重排序
阅读量:6769 次
发布时间:2019-06-26

本文共 2232 字,大约阅读时间需要 7 分钟。

 
@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
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

你可能感兴趣的文章
solr 使用记录 - 导入数据库数据
查看>>
Android实现自定义带文字和图片的Button
查看>>
php 安全小建议 上
查看>>
js 调整select 框 左移右移 上移下移
查看>>
mysql时间格式化
查看>>
数组编码转换函数
查看>>
4MLinux 24.0 发布
查看>>
如何对网站进行归档
查看>>
利用OnClientClick事件弹出选项提示框
查看>>
putty 报'xterm': unknown terminal type 错误处理
查看>>
iOS上面的Samba的管理软件
查看>>
Visual Studio Code 开发Odoo配置简单手记
查看>>
CentOS6.5系统挂载NTFS分区的移动硬盘
查看>>
ubuntu12.04 qq最小化后消失解决方法
查看>>
转:【整理】约瑟夫问题的数学方法
查看>>
FancyMoves,一款精美的图片轮播插件,可用键盘左右键进行轮播
查看>>
UNIX下的定时任务-----cron
查看>>
Mac 安装 scrapy
查看>>
Spring Boot & Spring Cloud应用内存管理
查看>>
C++学习笔记-6-函数
查看>>