0
Can anyone told me what is different between "System.out.printIn()" and "System.out.print()"
I think "System.out.print()" is better becus it print without error
7 Answers
+ 2
println prints in new line
+ 1
println means print in next line
+ 1
It will display code in next line
+ 1
System.out.print will just print the text in the current line that u r output is on and System.out.println will display the corresponding output on the next line because of the suffix ln that js new line....
+ 1
type this code and you can see the difference.
public class Demo {
public static void main(String[] args){
System.out.print("Hallo ");
System.out.println("Java ");
System.out.print("Programmers.");
}
}
0
How?
0
Thnx everybody
I think 'System.out.printIn("text")' it's like
'System.out.print("text \n")'