Oracle官网提供的jdk8的安装包jdk8增加了Lambda表达式: Collections.sort(names,(Stringa,Stringb)->{ returnb.compareTo(a); });、 函数式接口: converter=something::startsWith; Stringconverted=converter.convert("Java"); System.out.println(converted);