Hello Friends,
Can someone please advise me on how to print an array inside of a GUI text field?
Thank you,
Jim
Here is some of my code.
/**
This private inorder method recursively
traverses a binary tree in inorder.
@param btree The root of the tree to traverse.
*/
private void inorder(AVLNode btree)
{
int [ ] arr = new int[10];
if (btree != null)
{
inorder(btree.left);
arr[k] = (btree.value);
inTextField.setText(arr[k]); //This gets me an error message.
k++;
inorder(btree.right);
}
}