how to print something in return statement in java code example
Example 1: print statement in java
System.out.println("Hello!"); //prints then ends line
System.out.print("Hello!!");//prints without line spacing
Example 2: output statement java
System.out.println("Hello World");