1public class JavaPrintStreamWriteExample4 {
2public static void main(String[] args) {
3//out is the object class PrintStream.
4byte[] b= {115,104,117,98,104,97,109,95,106,97,100,111,110};
5System.out.write(b, 0, 13);
6System.out.println();
7System.out.print("Successfully printed byte array to this stream.");
8}
9