This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Java in General and the fly likes Tree Traversal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Tree Traversal" Watch "Tree Traversal" New topic

Tree Traversal

Rajeev Ja
Ranch Hand

Joined: May 06, 2007
Posts: 38
which is the best tree traversal method(inorder,preorder or postorder)
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 44515
Not an advanced question.

There is no such thing as a "best" traversal method. It depends which order you want to see the members in.
A quick google search revealed this, this, and this site.
I agree. Here's the link:
subject: Tree Traversal
jQuery in Action, 3rd edition