0

When I create array of LinkedList (of Integers) like this,

new LinkedList<Integer>[V];

it gives me error saying "Generic Array creation"

but when I create array like this

new LinkedList[V];

it works fine.

What is this error and what's going wrong here ?

Michael
  • 34,340
  • 9
  • 58
  • 100
Vishwanath
  • 97
  • 1
  • 12

0 Answers0