摘要: //静态的计算次数;private static int start = 0; //main方法public static void main(String[] args) { System.out.println(test(9));}//测试方法public static int test(int 阅读全文
posted @ 2021-10-26 09:54 滔滔江水连绵不绝 阅读(464) 评论(0) 推荐(0)
摘要: //String类型确保小数精度BigDecimal bigDecimal = new BigDecimal("123.123");//split(String regex)放入的是正则表达,"."会全部剔除,需要"\\."String[] split = bigDecimal.toString() 阅读全文
posted @ 2021-10-26 09:34 滔滔江水连绵不绝 阅读(621) 评论(0) 推荐(0)