1.

subList(startIndex, endIndex);//startIndex开始,到endIndex结束,不包含endIndex!

 

2.

集合排序可以实现 java.util.Comparator 接口,根据不同的返回值决定是倒叙还是正序排列。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
  • 2022-01-28
  • 2021-08-18
  • 2021-06-05
  • 2022-12-23
  • 2022-01-02
猜你喜欢
  • 2021-09-09
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案