Java Principle of sort when using TreeSet

前端 未结 0 1940
-上瘾入骨i
-上瘾入骨i 2021-02-01 10:39

when use iterator to traversal TreeSet, and of course the hashcode() and equals() is overrides, how does the treeset sort all elements as a certain order when the program is run

相关标签:
回答
  • 消灭零回复
提交回复
热议问题