摘要: double pi = 3.1415927; //圆周率 //取一位整数 System.out.println(new DecimalFormat("0").format(pi)); //3 //取一位整数和两位小数 System.out.println(new DecimalFormat("0.0 阅读全文
posted @ 2020-08-19 21:58 Blake_Li 阅读(237) 评论(0) 推荐(0)
摘要: Collections.synchronizedMap()与ConcurrentHashMap主要区别是:Collections.synchronizedMap()和Hashtable一样,实现上在调用map所有方法时,都对整个map进行同步,而ConcurrentHashMap的实现却更加精细,它 阅读全文
posted @ 2020-08-19 11:49 Blake_Li 阅读(158) 评论(0) 推荐(0)
摘要: 类$内部类 例如com.xxx.A$B 阅读全文
posted @ 2020-08-19 11:39 Blake_Li 阅读(920) 评论(0) 推荐(1)