what is print method is how it implement 😐❓
hidden #10602322
Level 3
print method
Resolved
Comments (4)
- Popular
- New
- Old
You must be signed in to leave a comment
hidden #10602322
22 April 2020, 16:53
thanks all
0
jobson
21 April 2020, 21:09
just add System.out.println(s);
4 times
0
joshua
21 April 2020, 13:15
print method is used to print a statement in the output page
0
Java Learner
20 April 2020, 07:22
print method
It does not add any new line.
For example, Let's say you want to print Good morning!
System.out.print("Good" + " ");
System.out.print("morning!");
Output
Good morning!
Note: These both text are printing in the same line.
if you use "println method" then it will print into the new line.
Same above example by using println
System.out.println("Good" );
System.out.println("morning!");
Output
Good
morning!
+2