There is a good question on rounding decimals in Java here. But I was wondering how can I include the trailing zeros to display prices in my program like: $1.50, $1.00
T
Have you tried:
String s = String.format("$%.2f", 2.50);
That will do the trick.