Array of Generics Can not Cast to Object to Comparable Java

后端 未结 0 1961
长发绾君心
长发绾君心 2020-12-03 03:23

I want to create a class which accepts Generics in Java, but I want to also enforce the Generic to implement the Comparable interface. This is the code

public         


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