Why can't we use generics in static classes or methods

前端 未结 0 1775
长情又很酷
长情又很酷 2021-01-01 19:15

public class BubbleSortapp { public static void generic(T arr) {

    //Cannot make a static reference to the non-static type T
    
}
相关标签:
回答
  • 消灭零回复
提交回复
热议问题