Friday, 9 August 2013

Can someone break down this line so I can understand it?

Can someone break down this line so I can understand it?

I'm having trouble understanding how an array of ArrayLists is initialized
in Java, can someone explain what's going on in this line of code?
edges = (ArrayList<Integer>[]) new ArrayList[nodeCount + 1];

No comments:

Post a Comment