ArrayList al = new ArrayList(); //数组定义 //遍历数组: int sum = 0; Iterator itr = al.iterator(); while(itr.hasNext()){ Integer intObj = (Integer)itr.next(); sum += intObj.intValue(); } Read More
posted @ 2017-05-24 16:20 羊羊羊🐑 Views(135) Comments(0) Diggs(0) Edit