摘要:
HashMasp records一、keySetIterator it = records.keySet().iterator();while(it.hasNext()){ String row = it.next(); ArrayList rowf = records.get(row);}二、entySetIterator iter = records.entrySet().iterator()... 阅读全文
posted @ 2010-02-24 13:28
新手打酱油
阅读(397)
评论(0)
推荐(0)
摘要:
在网上找到了一个计算年龄的java程序代码,但是计算出来的年龄竟然会出现负数,跟踪后发现cal.get(Calendar.MONTH)获取到的月份是从0开始的,代码如下:public static int getAge(Date birthDay) throws Exception { Calendar cal = Calendar.getInstance(); if (cal.before(bi... 阅读全文
posted @ 2010-02-24 12:53
新手打酱油
阅读(6994)
评论(1)
推荐(0)
浙公网安备 33010602011771号