bed
JCHJava Community | Help. Code. Learn.
•Created by bed on 3/6/2025 in #java-help
Need help with padding(i think?)
My program uses string.format to print a table out line by line from a file, which works fine, but it doesn't line up well
I tried to fix this by making the end of each column add spaces onto the end, so that they would all be the same length - however I cant figure out how
The closest ive gotten is by using 0 padding, but #1 this only works with integers, and two this only seems to work on the left side
(btw this might not be called padding, im still learning string.format)
40 replies