- 博客(6)
- 收藏
- 关注
转载 对象按某个属性值排序
Collections.sort(list, new Comparator<PriceTypeSkuNum>() { @Override public int compare(PriceTypeSkuNum o1, PriceTypeSkuNum o2) { if(o1.getPrice...
2016-11-25 10:40:00 100
转载 取上个月正月时间段
Calendar cal = Calendar.getInstance(); int year = cal.get(Calendar.YEAR); int month = cal.get(Calendar.MONTH); cal.set(Calendar.DAY_OF_MONTH, 1); cal...
2016-11-24 09:03:00 126
转载 java简易接口建立
服务端: public void getOneStudent(String str1, String str2, String str3){ Student s = new Student(); s.setName("Tony"); s.setNum("123"); String message = JSONObject.toJ...
2016-11-15 19:37:00 113
转载 超长隐藏,悬浮显示table
<style type="text/css">#table { width: 100%; margin-top: 10px; color: #4b4b4b; text-align: center; table-layout: fixed; }#table tr { display: table-row; ve...
2016-11-14 19:07:00 195
转载 java导出excel
需要jar包:poi-3.7.jar,poi-ooxml-3.7.jar,poi-ooxm-schemas-3.7.jarjava类代码public void loadExpressExcel(){ List<Map<String, Object>> expressList = new ArrayList<Map<Stri...
2016-11-10 19:27:00 74
转载 equals()来判断传值为空
public void test1(String a){ if(a.equals("")){ System.out.println("false"); } } public void test2(String a){ if("".equals(a)){ Sys...
2016-11-08 20:14:00 1477
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人