
core java
文章平均质量分 71
longflang
这个作者很懒,什么都没留下…
展开
-
BigDecimal数字精确计算类
java.math.BigDecimal。BigDecimal一共有4个够造方法: 第一种:BigDecimal(double val)Translates a double into a BigDecimal. 第二种:BigDecimal(String val)Translates the String repre sentation of a BigDecimal into a Big...原创 2010-01-19 16:12:07 · 103 阅读 · 0 评论 -
Connection关于java.util.ConcurrentModificationException的处理
public class Client { public static void main(String[] args) { List listTemp = new ArrayList(); listTemp.add(1); listTemp.add(2); listTemp.add(3); listTemp.add(4); for(Integer i : listTemp...原创 2010-06-11 00:27:02 · 285 阅读 · 0 评论 -
Map通用遍历方法
Java代码 Map map = new HashMap(); Iterator it = map.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); Object key = ...原创 2010-10-27 19:05:29 · 117 阅读 · 0 评论