Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+18 votes

ex.) Exercise 2.10 on Practice-It wants you to have 9 spaces then | but I cannot seem to get it to be able to repeat itself on the same line.

asked in CSC211_Winter2018 by (261 points)

2 Answers

+10 votes

Have you tried using print instead of println?

answered by (10.9k points)
+3 votes

System.out.print() prints everything on the same line.

answered by (253 points)
...