Proper spacing of numbers
- A simple way to think about it is to display an extra space if a number is less than 10. This will not work if dealing with negative numbers or numbers greater than 99. That adds complexity to this method.
- Resource printf operation in Java. This is a more comprehensive way and can be used to do lot's of different formatting.
This topic: CenterForComputing
> WebHome >
Syllabi >
CSC121SylF2023 >
CSC121F2023Lab04 > CSC121F2023Lab04Hint3
Topic revision: r1 - 2023-06-19 - cathybareiss