摘要:
Collections.sort(list, new Comparator() { @Override public int compare(PriceTypeSkuNum o1, PriceTypeSkuNum o2) { if(o1.getPrice() > o2.getPrice()){ ... 阅读全文
摘要:
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... 阅读全文
摘要:
需要jar包:poi-3.7.jar,poi-ooxml-3.7.jar,poi-ooxm-schemas-3.7.jar java类代码 js代码 jsp代码 阅读全文
摘要:
如果传值a为null,test1将会报空指针异常。 null是一个宏定义,不是String对象,不具有String的方法。 null放前面 null.equals()必然是空指针异常。 正确写法: 阅读全文