一、图结构

JAVA之容器

二、

    对于HashSet和HashMap自定义对象需要重写equals和Hashcode方法
    对于List自定义对象需要实现Comparable接口,重写compareTo方法


    对于List,Collections有几个方法:
    sort:顺序
    reverse:倒序
    shuffle:随机
    binarySearch:折半查找

相关文章:

  • 2021-06-30
  • 2021-07-26
  • 2021-05-09
  • 2021-05-03
  • 2021-10-30
  • 2022-03-01
  • 2021-10-27
  • 2021-06-11
猜你喜欢
  • 2021-09-13
  • 2021-10-26
  • 2021-08-10
  • 2021-07-09
  • 2021-07-19
  • 2022-01-03
相关资源
相似解决方案