摘要:
Boolean.valueOf(a);a为true时返回true不管大小写,a为其他值时都返回false; 阅读全文
posted @ 2021-01-12 15:25
云淡风轻博客
阅读(349)
评论(0)
推荐(0)
摘要:
方法一:String的format方法(推荐) double f = 111231.5585; System.out.println(String.format("%.2f", f)); 方法二:DecimalFormat的format方法 double f = 111231.5585; Decim 阅读全文
posted @ 2021-01-12 10:11
云淡风轻博客
阅读(3746)
评论(0)
推荐(0)
浙公网安备 33010602011771号