> System.out.println("Roses are red, "); // Line 1
> System.out.println("Violets are blue, "); // Line 2
> System.out.print("You got this, "); // Line 3
> System.out.print("I know you do!"); // Line 4
The code segment is intended to produce the following output but may not work as intended.
> Roses are red,
> Violets are blue,
> You got this, I know you do!
Which change, if any, can be made so that the code segment produces the intended output?
a.
Replacing print with println on lines 3 and 4.
b.
Replacing println with print on lines 1 and 2.
c.
Putting a space before the I on line 4.
d.
Changing the println on line 1 to a print and changing the print on line 3 and a println.
e.
The code segment works as intended.