diff --git a/README.md b/README.md index e5b9073..77c8100 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,11 @@ The library consits of an interface `Node` and an implementation `NodeItem`. ## Add a child node - root.addChild("child"); + root.createChild("child"); + +Which is shorthand for: + + root.addChild(new NodeItem<>("child")); The tree now looks like: