摘要: Collections.sort(list, new Comparator() { @Override public int compare(PriceTypeSkuNum o1, PriceTypeSkuNum o2) { if(o1.getPrice() > o2.getPrice()){ ... 阅读全文
posted @ 2016-11-25 10:40 lskdcl 阅读(294) 评论(0) 推荐(0) 编辑
摘要: Calendar cal = Calendar.getInstance(); int year = cal.get(Calendar.YEAR); int month = cal.get(Calendar.MONTH); cal.set(Calendar.DAY_OF_MONTH, 1); cal.add(Calen... 阅读全文
posted @ 2016-11-24 09:03 lskdcl 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 服务端: 访问端: 阅读全文
posted @ 2016-11-15 19:37 lskdcl 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-11-14 19:07 lskdcl 阅读(800) 评论(0) 推荐(0) 编辑
摘要: 需要jar包:poi-3.7.jar,poi-ooxml-3.7.jar,poi-ooxm-schemas-3.7.jar java类代码 js代码 jsp代码 阅读全文
posted @ 2016-11-10 19:27 lskdcl 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 如果传值a为null,test1将会报空指针异常。 null是一个宏定义,不是String对象,不具有String的方法。 null放前面 null.equals()必然是空指针异常。 正确写法: 阅读全文
posted @ 2016-11-08 20:14 lskdcl 阅读(537) 评论(0) 推荐(0) 编辑