Java语言

  1. Comparator
new Comparator(Object x, Object y){
    return (int)x - (int)y;
}
Comparator.reverseOrder();
(Object x, Object y) -> (int)x - (int)y;

你可能感兴趣的:(Java语言)