摘要: Pattern p=Pattern.compile("\\d+"); Matcher m=p.matcher("22bb23"); m.find();//返回true Matcher m2=p.matcher("aa2223"); m2.find();//返回true Matcher m3=p.ma 阅读全文
posted @ 2020-08-05 18:25 real汪磊 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1. stream() 函数式编程: a. filter: b. map c. sorted, reversed d. distinct forEach(e->e.setName(e.getName+"zsd")); 目的就是把list的每一项的name属性加上“”zsd“”字符串,变为一个新的值 阅读全文
posted @ 2020-08-05 00:44 real汪磊 阅读(114) 评论(0) 推荐(0) 编辑