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

9th Jul 2016, 12:18 PM
Very hard!
Very hard! - avatar
7 Answers
+ 2
println prints in new line
9th Jul 2016, 3:30 PM
Farhan Shaikh
Farhan Shaikh - avatar
+ 1
println means print in next line
9th Jul 2016, 12:23 PM
milada
milada - avatar
+ 1
It will display code in next line
9th Jul 2016, 12:51 PM
milada
milada - avatar
+ 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....
9th Jul 2016, 12:55 PM
K.p.
+ 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."); } }
10th Jul 2016, 4:31 AM
Gaary
Gaary - avatar
0
How?
9th Jul 2016, 12:46 PM
Very hard!
Very hard! - avatar
0
Thnx everybody I think 'System.out.printIn("text")' it's like 'System.out.print("text \n")'
10th Jul 2016, 5:26 AM
Very hard!
Very hard! - avatar