Help with proportional spacing
Here are two nice resources:
Console Input/Output in Java (Chapter 3 of Let Us Java)
https://docs.oracle.com/javase/tutorial/java/data/numberformat.html
(java official documentation)
Or you can us an if statement to output one or two spaced depending of if the number is < 10 or >= 10
This topic: CenterForComputing
>
WebHome
>
Syllabi
>
CSC121SylS2023
>
CSC121S2023Lab06
>
CSC121S2023Lab6H4
>
CSC121S2023Lab6H4a
Topic revision: r2 - 2023-02-06 - cathybareiss
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback