0

When I tried to declare this Two-D Array List,

    ArrayList<String>[][] names = new ArrayList<String>[][];

It gave me this Error:

Exception in thread "main" java.lang.Error: Unresolved compilation problems: Variable must provide either dimension expressions or an array initializer Cannot create a generic array of ArrayList

at Prac5twodArraylistString.main(Prac5twodArraylistString.java:7)

Can you please help me understand the problem with this code?

Amey Gupta
  • 57
  • 1
  • 10

0 Answers0