摘要:
//java数字格式化. DecimalFormat类的学习
//有两种实现数字格式化的方式. 一是直接在创建对象时传递格式. 二是利用 类中 applyPattern方法传递格式. import java.text.DecimalFormat;
public class DecimalFormatDemo { static public void SimpleFormat(String pattern, double value){ //直接设置格式. DecimalFormat myFormat = new DecimalFormat(pattern); S... 阅读全文
浙公网安备 33010602011771号