It would be logical and correct if the lines were displayed in the following way:
Java is easy to learn!
Java opens many opportunities!
Java is easy to learn!
Java opens many opportunities!
Java is easy to learn!
Java opens many opportunities!
Java is easy to learn!
Java opens many opportunities!
Because the call to the print method follows:
print("Java is easy to learn!");
print("Java opens many opportunities!");
Why are strings displayed in this way?
Under discussion
Comments (3)
- Popular
- New
- Old
You must be signed in to leave a comment
hidden #10441779
18 April 2019, 10:54
Сергей, так как должны быть строки
0
Siddiqua
18 April 2019, 04:45
here the print() has been called twice. so first print() will be executed completely , that is print the given statement four times. then after it has been executed the next print() will execute.
0
Serg
18 April 2019, 08:31
Thank you, now I understand.
0