Sorry if this question was made already, I've made a deep search and nothing.
Now, I know that:
String.format("%05d", price);
Will be padding my price with zeros to the left, so a price of 25 will result in 00025
What if I want to pad them to the right, so the result is 25000? How do I do that using only String.format patterns?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…