Print a String in java with example

In this tutorial, we will learn to print a String in java with example Syntax Example public class PrintExample { public static void main(String[] args) { String printingText = "Hello World"; // Below line will print above string variable System.out.println(printingText); } } Output Hello World Reference https://docs.oracle.com/javase/tutorial/getStarted/application/index.html Download https://github.com/rkumar9090/BeginnersBug/blob/master/BegineersBug/src/com/geeks/example/PrintExample.java