<<< Formatting Currency | Index | The NumberFormat class, cont. >>> |
import java.text.NumberFormat;
Three static methods of the NumberFormat class are
getCurrencyInstance() getPercentInstance() getNumberInstance()
Three methods of a NumberFormat object
format(anyNumberType) setMinimumFractionDigits(int) setMaximumFractionDigits(int)
<<< Formatting Currency | Index | The NumberFormat class, cont. >>> |