sunny123456

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

2024年4月26日

摘要: 点击查看代码 Integer[] numbers = {4, 3, 5, 1, 2}; // 使用自定义Comparator进行排序 Arrays.sort(numbers, new Comparator<Integer>() { @Override public int compare(Integ 阅读全文
posted @ 2024-04-26 14:56 sunny123456 阅读(444) 评论(0) 推荐(0)