Obviously I should have said int[] vals = new int[root.numNodes(...)]; Sean On Mar 6, 2014, at 8:58 PM, Raymond Shpeley <[log in to unmask]> wrote: >> Why can't you just say: >> >> int[] vals = root.numNodes(GPNode.NODESEARCH_TERMINALS); >> int count = 0; >> Iterator it = root.iterator(GPNode.NODESEARCH_TERMINALS); >> while(it.hasNext()) >> { >> TsERC erc = (TSERC)(it.next()); >> vals[count++] = erc.theInteger; // or wherever you stored it >> } >> >> Sean > > Indeed... > That is exactly what I needed. Thanks again! > > -- ray