← Back to Printing
Question 267
Print Without a Newline
Print Without a Newline
UseSystem.out.print()(NOTprintln) twice to printSunandfloweron the same line with no space and no trailing newline, producing (see Expected Output). Because
Expected Output:
Sunflower= newline. No newline after the last line.
Hints2 available
Sign in to use hintsTopics:
Printing
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (sysout, psvm, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.