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,667
  • 35
  • 107
  • 174

0 Answers0