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.


+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 (8 points)

2 Answers

+10 votes

Have you tried using print instead of println?

answered by (15.6k points)
+3 votes

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

answered by (3k points)