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
  • 9,430
  • 29
  • 98
  • 161

0 Answers0