Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java println

System.out.print(<string>); //prints in the same line as the previous print
System.out.println(<string>); //prints in a new line

// Example
System.out.print("This ");
System.out.print("will ");
System.out.print("be ");
System.out.print("all ");
System.out.print("in ");
System.out.print("one ");
System.out.print("line.");

System.out.println("Hello World!");
System.out.println("second line");
Source by www.c-sharpcorner.com #
 
PREVIOUS NEXT
Tagged: #java #println
ADD COMMENT
Topic
Name
9+7 =