I want to print any text without using Print function in java?

后端 未结 5 593
南方客
南方客 2021-01-17 03:41

I want to print any text without using system.out.println() in java? It is possible If yes then how; Any idea.

5条回答
  •  萌比男神i
    2021-01-17 04:25

    System.out in a PrintStream which is a kind of OutputStream. You can send raw bytes on that stream, if you wish it so. This is not recommended, because how raw bytes are handled depends on the host system and its configuration (the dreadful "locale" business). The print() and println() methods do "the right thing" for you.

提交回复
热议问题