Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在测试并尝试了解 TreeSet。
我仍然不知道如何实现返回这种类型的东西:
TreeSet<Entry<String, Long>>
真的很迷茫。
先感谢您。
如果你需要 TreeSet 中的 Entry,你必须自己实现 Map.Entry 接口。它非常简单的界面
我也是树集中的新手,但我理解的是代码正在将另一个树集条目调用到新的树集中。如我错了请纠正我