question: public List breadthFirst ( boolean preorder ) { List answer = new NodeList ( ) ; if ( preorder ) answer . add ( this ) ; answer . addAll ( breadthFirstRest ( preorder ) ) ; if ( ! preorder ) answer . add ( this ) ; return answer ; }
target:  Provides a collection of all the nodes in the tree using a breadth-first traversal.