hello everyone,
I wrote this dummy tree class which is associated to itself, and i populate it using a recursive method. The recursive method, getMyChildren, is used to add child objects to parent object, and then grandchildren to children, and so on.
In my method, after the recursion, I
test the collection of children and they're always empty, even though they're not.
Does anyone know why this happens? I would appreciate any thoughts.
Here is my code: