我自己使用起来比较记得住的是下面这个labmda表达式用法: ArrayList list = new ArrayList<>(); list.sort(((int a, int b) -> b - a); //升序.
確定! 回上一頁