Using a Java Vector to access the database: static Node find(Vector V, Node Tree[]) { for( Enumeration e = V.elements(); V.hasMoreElements(); ) { int index = ((Integer)V.nextElement()).intValue(); Tree = Tree[index]; } return Tree; }