Creating an array of Sets in Java

后端 未结 3 394
粉色の甜心
粉色の甜心 2021-02-02 15:13

I\'m new to Java so I\'m probably doing something wrong here, I want to create an array of Sets and I get an error (from Eclipse). I have a class:

public class R         


        
3条回答
  •  孤城傲影
    2021-02-02 15:28

    Arrays don't support Generics. Use an ArrayList:

    ArrayList> groupMembers = new ArrayList>();
    

提交回复
热议问题