Hello,
I have a Vector of int[]. Now I want to take one of these int[] and put it into a variable. Heres the code I have so far:
int[] CurNode = new int[8];
CurNode = Tree.elementAt(i);
Tree is a Vector Containing 8 arrays of integer, all with 8 elements in them. I want to take one of the elements, and put it in CurNode. I get the following error:
Thanks for your help,
Dan...
I have a Vector of int[]. Now I want to take one of these int[] and put it into a variable. Heres the code I have so far:
int[] CurNode = new int[8];
CurNode = Tree.elementAt(i);
Tree is a Vector Containing 8 arrays of integer, all with 8 elements in them. I want to take one of the elements, and put it in CurNode. I get the following error:
Code:
AITree.java:52: incompatible types
found: java.lang.Object
required: int[]
CurNode = Tree.elementAt(i);
^
Dan...