lotus

贵有恒何必三更眠五更起 最无益只怕一日曝十日寒

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2021年2月6日

摘要: 最近做算法题用了Comparator接口下的compare方法,思考了一下升序和降序的规则是如何来的,现在做一个补充,方便以后回顾。 升序代码 public static void main(String[] args) { Integer[] nums = new Integer[]{6, 8, 阅读全文
posted @ 2021-02-06 15:31 白露~ 阅读(340) 评论(0) 推荐(0)

摘要: 实例如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 阅读全文
posted @ 2021-02-06 12:09 白露~ 阅读(618) 评论(0) 推荐(0)

摘要: public class Employee { private int level; private int salary; private int years; public int getLevel() { return level; } public void setLevel(int lev 阅读全文
posted @ 2021-02-06 12:05 白露~ 阅读(1531) 评论(0) 推荐(0)