How to get inverse of a comparator in java

前端 未结 4 1527
执念已碎
执念已碎 2021-01-18 01:07

In a method I receive a generic object E extends Comparable as an argument. Now i want to create two priority queues.One which uses the comparato

4条回答
提交回复
热议问题