How can I left-align strings using String.format()? March 26, 2023 by Tarik Same way as with printf — use a - modifier in the format