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
  • 37,794
  • 9
  • 70
  • 113
Vishwanath
  • 119
  • 2
  • 13

0 Answers0