> The iterator works fine. Thanks.
> Now I'm trying to figure out how to get it into integer data form. I'm using an
> ArrayList to hold the terminals after iteration and have tried various casts to no
> avail when I want to put one of the terminals into an int.
Why can't you just say:
int vals = root.numNodes(GPNode.NODESEARCH_TERMINALS);
int count = 0;
Iterator it = root.iterator(GPNode.NODESEARCH_TERMINALS);
TsERC erc = (TSERC)(it.next());
vals[count++] = erc.theInteger; // or wherever you stored it