View Single Post
Old Nov 5th, 2006, 9:21 AM   #3
deanosrs
Programmer
 
deanosrs's Avatar
 
Join Date: Apr 2006
Location: Bristol, UK
Posts: 31
Rep Power: 0 deanosrs is on a distinguished road
Send a message via MSN to deanosrs
Ok right I've managed to sort myself out with it now - was in a major panic earlier.

I now have the following segments of code:

private LinkedList[] graph = new LinkedList[100];

and to add data to it where src and dest are ints indicating the source and destination - the src references the array index and the dest is stored as data in that list:

graph[src].addLast(dest);

However I get a warning with this code saying "unchecked call to addLast(E)". I found a webpage here, http://www.rgagnon.com/javadetails/java-0521.html , that seems to suggest I need to put <int> in a couple of places in my first line of code defining the data structure. I can't seem to get it anywhere without it giving me an error and not compiling though. I'll attach my source file in a sec...
deanosrs is offline   Reply With Quote