📅  最后修改于: 2022-03-11 14:52:09.537000             🧑  作者: Mango
public class JavaPrintStreamWriteExample4 {
public static void main(String[] args) {
//out is the object class PrintStream.
byte[] b= {115,104,117,98,104,97,109,95,106,97,100,111,110};
System.out.write(b, 0, 13);
System.out.println();
System.out.print("Successfully printed byte array to this stream.");
}