Skip to content

Commit

Permalink
Add tree to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Dgzt committed Sep 24, 2021
1 parent 7d46075 commit 8b3ff4b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,21 @@ consoleTable.addRow("Row 31", "Extra length row", "Row 33");

consoleTable.print(console);
```

### Tree

![](images/tree.png)

```java
ConsoleTree consoleTree = new ConsoleTree();

TreeNode line1 = consoleTree.addRow("Line 1");
consoleTree.addRow(line1, "Inner line 11");
TreeNode line12 = consoleTree.addRow(line1, "Inner line 12");
TreeNode line121 = consoleTree.addRow(line12, "Inner line 121");
consoleTree.addRow(line121, "Inner line 1211");
consoleTree.addRow(line1, "Inner line 13");
consoleTree.addRow("Line 2");

consoleTree.print(console);
```
Binary file added images/tree.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8b3ff4b

Please # to comment.