java system out code example
Example 1: system.out.println
public static void main(String[] args){
System.out.println("Hello World");
}
Example 2: system.out.write in java example
public class JavaPrintStreamWriteExample4 {
public static void main(String[] args) {
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.");
}
Example 3: java system out
System.out.println("Hello World");