Re: [Htmlparser-developer] Added methods to NodeList
Brought to you by:
derrickoswald
From: Matthew B. <mat...@co...> - 2005-09-13 13:30:34
|
Matthew Buckett wrote: Sorry, missed this. > /** > * Finds the index of the supplied Node. > * @param node The node to look for. > * @return The index of the node in the list or -1 if it isn't found. > */ > public int indexOf(Node node) { > for (int i=0;i<size;i++) { > if (nodeData.equals(node)) Should have been: if (nodeData[i].equals(node)) -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |