How can I left-align strings using String.format()?

Same way as with printf — use a - modifier in the format

Leave a Comment