10 2021 档案
摘要:Java中有两种方式来提供比较功能。 Comparable 实现java.lang.Comparable接口,使你的类天生具有比较的能力,此接口很简单,只有一个compareTo方法。 此方法接收另一个Object为参数,如果当前对象小于参数则返回负值,如果相等则返回零,否则返回正值。 以x.com
阅读全文
摘要:使用方法 List<Integer> list = new ArrayList<Integer>() { { add(1); add(2); add(3); } }; list.stream().sorted().forEach(System.out::println); 参考文章 永远不要使用双花
阅读全文
摘要:alter user'root'@'localhost' identified by '新密码';
阅读全文