system print java code example
Example 1: print in java
System.out.println("text");
System.out.println(String);
System.out.print("text");
System.out.print(String);
Example 2: system.out.println
public static void main(String[] args){
System.out.println("Hello World");
}
Example 3: 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 4: how to print in java
System.out.println("Hello World!");
Example 5: system.out.println
System.out.println("Hello World");