kissworld
摘要: 1:java8之前List分组: 假设有个student类,有id、name、score属性,list集合中存放所有学生信息,现在要根据学生姓名进行分组。 public Map<String, List<Student>> groupList(List<Student> students) { Ma 阅读全文
posted @ 2021-05-27 11:09 *0w0* 阅读(1690) 评论(0) 推荐(0)
摘要: import javax.script.ScriptEngine;import javax.script.ScriptEngineManager; public static void main(String[] args) { ScriptEngine js = new ScriptEngineM 阅读全文
posted @ 2021-04-28 10:31 *0w0* 阅读(446) 评论(0) 推荐(0)
摘要: 是因为Json字符串中含有转义字符\\",可以使用String s = StringEscapeUtils.unescapeJava(param);先转义成正常的字符串 阅读全文
posted @ 2021-04-09 14:29 *0w0* 阅读(2946) 评论(0) 推荐(0)