Due: Monday 5/12 10:00am
Submission name: w20_traversal
For this, you will need the Tree program you can get here: https://github.com/nextcs-dw/thesource/tree/main/trees/TreeRunner
Make the following modifications to your Tree
class:
- Add three methods to the
Tree
class.preOrder
,inOrder
, andpostOrder
. Each should return aString
which is the result of doing a pre, in, and post order traversal of a tree. - In your driver file, display the traversal results on the screen.