Collections.sort(collection) shows error “reason: no instance(s) of type variable(s) T exist so that Collection conforms to List

后端 未结 0 1713
温柔的废话
温柔的废话 2020-12-02 02:59

Encountered a problem in java. I want to sort my Collection collection which can be HashSet, TreeList, ArrayList, LinkedList or Vector. I throw

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