public class Tree extends Object
Modifier and Type | Field and Description |
---|---|
protected ArrayList<Tree> |
children |
protected String |
label |
Modifier and Type | Method and Description |
---|---|
Tree |
createChild(String label) |
void |
createChildren(String... children) |
ArrayList<Tree> |
getAllChildren() |
Tree |
getChild(String label) |
ArrayList<Tree> |
getChildren() |
String |
getLabel() |
void |
setLabel(String label) |
String |
toString() |
Copyright © 2020. All rights reserved.