摘要: 1. 重写Arrays.sort Arrays.sort默认按升序进行排序。降序排列需要自己实现Comparator接口。而且有时候有两个坐标的时候的排序,也需要实现Comparator接口。 public static void main(String[] args) { class point 阅读全文
posted @ 2017-10-09 15:17 shawshawwan 阅读(1498) 评论(0) 推荐(0) 编辑