Пример #1
0
 void indent(Indenter indenter) {
   indenter.println(branch.data);
   indenter.indent();
   for (Node child : children) {
     child.indent(indenter);
   }
   indenter.deindent();
 }
Пример #2
0
 void indent(Indenter indenter) {
   indenter.println(this);
 }