Answered at java - Generalizing actions for a binary tree traversal? - Stack Overflow
Type: Posts; User: Rectangle
Answered at java - Generalizing actions for a binary tree traversal? - Stack Overflow
I'm trying to find a way that I could take a binary tree class and traverse through it's nodes, performing X inline actions on each node without having to rewrite the same traversal code.
If Java...