When creating a LinkedList with this statement in Java
LinkedList<Integer> adj[] = new LinkedList[numPlaces()];
I get two warnings saying
RoadMap.java:247: warning: [rawtypes] found raw type: LinkedList
LinkedList<Integer> adj[] = new LinkedList[numPlaces()];
^
missing type arguments for generic class LinkedList<E>
where E is a type-variable:
E extends Object declared in class LinkedList
RoadMap.java:247: warning: [unchecked] unchecked conversion
LinkedList<Integer> adj[] = new LinkedList[numPlaces()];
^
required: LinkedList<Integer>[]
found: LinkedList[]
2 warnings
The code runs the way it is inteded to but what do I need to change to solve them?