![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA记录
xgnewlife
属风象星座天秤座的我,有很高的审美意识,不但洞察能力强、喜好平衡,拥有像风一般自由自在的智能、脑筋灵活敏捷,是个能多方面捕捉事物的思考者。【爱好魔兽与风速同行的跑跑^_^】
展开
-
SET的应用
Set集合具有数据的惟一性、无序性的特点,利用唯一性的特点,我们可以取出多个list集合中,不同的数据 public static void main(String[] args) { // TODO Auto-generated method stub Set userIdsSet = new HashSet(); String[] arr1 = new Strin原创 2009-08-12 16:19:00 · 374 阅读 · 1 评论 -
求取2个日期之间的天数
public static Long selectDaysBetweenDate(Date d1, Date d2) throws ParseException { // DurationFormatUtils 属于【org.apache.commons.lang.time.DurationFormatUtils】 return Long.valueOf(DurationFormat原创 2009-08-21 17:54:00 · 453 阅读 · 2 评论