S
S
ssurrokk2019-02-21 09:30:56
Java
ssurrokk, 2019-02-21 09:30:56

How to make the result of the toString() method be displayed in a beautiful ladder, like JSON?

If you make toString () of some more or less complex class using the default Alt + Insert in Android Studio, then the output (when output to the log) is something like this:

Some1{f1=1, some=Some2{f2=2}}

What are the ways, libraries, to display beautifully, with indents? Something like this:

Some1{
....f1=1
....some=Some2{
........f2=2
....}
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question