摘要:
public class BigDecimalTest { public static void main(String[] args) { //BigDecimal 高精度数字,常用于财务计算 java.math.BigDecimal; BigDecimal num1 = new BigDecim 阅读全文
posted @ 2020-11-24 21:40
阿灿呀
阅读(117)
评论(0)
推荐(0)
摘要:
public class RandomTest { public static void main(String[] args) { // 生成5个不同的随机数并放入数组中 Random random = new Random(); int[] arr = {-1,-1,-1,-1,-1}; int 阅读全文
posted @ 2020-11-24 21:15
阿灿呀
阅读(1086)
评论(3)
推荐(0)
摘要:
数字格式化类 DecimalFormat public class Demo1 { public static void main(String[] args) { /*数字格式化类 java.text.DecimalFormat; #:表示任何数字 ,:数位分割(千分位或其他自定义) .:小数点 阅读全文
posted @ 2020-11-24 20:34
阿灿呀
阅读(68)
评论(0)
推荐(0)
浙公网安备 33010602011771号