Why is this "Generic Array Creation" not allowed in the programme?
ArrayList<String>[] lists = new ArrayList<String>[5];
When I simplify to
ArrayList<String>[] lists = new ArrayList[5];
it compiles. What is the issue with providing the type of the lists (String) and why is it causing an error?