java drawing graphs or trees in console
If I remember well, you can draw ascii graphs with javaplot
For people coming here looking for a pure Java tree drawing library: I recommend text-tree, which draws trees like this (and other styles, a lot of possible config if you need it):
some text
├─── more text
├─── and more
│ ├─── still more
│ ╰─── more
╰─── the end
Full disclosure: I am the author of text-tree.
You can print ascii trees with minimal code. See the second answer to this question: How to print binary tree diagram?
(the second answer because this one is not only for binary trees)