How does System.out.print() work?

后端 未结 9 2216
鱼传尺愫
鱼传尺愫 2020-11-27 03:40

I have worked with Java for a quite a long time, and I was wondering how the function System.out.print() works.

Here is my doubt:

Being a functi

9条回答
  •  独厮守ぢ
    2020-11-27 04:39

    I think you are confused with the printf(String format, Object... args) method. The first argument is the format string, which is mandatory, rest you can pass an arbitrary number of Objects.

    There is no such overload for both the print() and println() methods.

提交回复
热议问题