其他分享
首页 > 其他分享> > println

println

作者:互联网

println

println(char型数组), 输出 内容

println(其他), 输入 地址值

java.io.PrintStream部分源码

public class PrintStream extends FileOutputStream implements Appendable, Closeable {
    // 私有构造器
    private PrintStream(boolean autoFlush, OutputStream out) {}
    private PrintStream(boolean autoFlush, OutputStream out, Charset charset) {}
    private PrintStream(boolean autoFlush, Charset charset, OutputStream out) {}
    public PrintStream(OutputStream out) {}
    public PrintStream(OutputStream out, boolean autoFlush) {}
    public PrintStream(OutputStream out, boolean autoFlush, String encoding) {}
    public PrintStream(String fileName) throws FileNotFoundException {}
    public PrintStream(String fileName, String csn) {}
    public PrintStream(File file) throws FileNotFoundException {}
    public PrintStream(File file, String csn) {}
    
    public void print(boolean b) {}
    public void print(char c) {}
    public void print(int i) {}
    public void print(long l) {}
    public void print(float f) {}
    public void print(double d) {}
    public void print(char s[]) {}
    public void print(String s) {}
    public void print(Object obj) {}
    
    public void println() {}
    public void println(boolean x) {}
    public void println(char x) {}
    public void println(int x) {}
    public void println(long x) {}
    public void println(float x) {}
    public void println(double x) {}
    public void println(char x[]) {}
    public void println(String x) {}
    public void println(Object x) {}
}

参考链接

https://www.bilibili.com/video/BV1Kb411W75N?p=309

视频中, 提到一句 println

标签:PrintStream,void,print,boolean,println,public
来源: https://www.cnblogs.com/beyondx/p/15505674.html