2

I trying to allocate 3 ArrayList as follow -

ArrayList<Integer>[] m_locationArr  = new ArrayList<Integer>[3]

and it prompts Cannot create a generic array of ArrayList<Integer>

What is wrong here ?

URL87
  • 10,028
  • 35
  • 102
  • 167

0 Answers0