Good day!
There is a question. Information is difficult to find, since the terms are weak. Therefore, I decided to write here.
Here in most of the examples everything is displayed via System.out.printl .
And is it possible to transfer the value of System.out.printl and output, for example, through Toast in android.

  • Specify what examples you are talking about, as far as I know the printl java function, which displays the answer to the console. You can pass a variable anywhere, you just need to choose the output method. - DimenSi
  • one
    It seems you need System.setOut(PrintStream out) ? - D-side
  • yes, sort of like that. thanks - Tomas Gertz
  • Be careful with this method on android devices, as there may be different behavior on different devices, but usually infa will be output to the logs - BORSHEVIK

0