+ 3
Java question
What is the deference between âSystem.out.printâ and âSystem.out.printInâ? Is there something to do with a blank space between the printed words? If not then I have one more following question : how to put a blank space? :) I will be very grateful for a good and clear explanation!
3 Respostas
+ 12
System.out.print ("abc\n);
equals to
System.out.println("abc");
/* for spaces , u can give that by spacebar ... no error will come ,
example : System.out.print("hello world");
else U can write System.out.println("hello\tworld");
//just like Hrishikesh said đ , i do the same
*/
//âș
+ 5
System.out.print will display the content only.
System.out.println will display the content and will move to the next line .
You can just use spacecbar to put blank space or \t is a escape sequence used to put a tab space .
All the best đ
+ 2
Hrishikesh Kulkarni, Gaurav Agrawal, thank you for your answers!đđđ