随笔分类 -  方法

摘要:package com.hughes.bcsc.app.core.util; /** *//** * List分页 * 实现:利用List的获取子List方法,实现对List的分页 * @author 显武 * @date 2010-1-8 16:27:31 * */ import java.util.ArrayList; import java.util.Lis... 阅读全文
posted @ 2017-07-07 10:23 灬花生酱 阅读(503) 评论(0) 推荐(0)
摘要:在实体类中进行排序: 1:实现implements Comparable<Object>接口来进行比较的重写 2:添加compareTo方法 进行比较 3:Collections.sort(X);调用方法传入集合进行排序 阅读全文
posted @ 2017-06-24 10:23 灬花生酱 阅读(804) 评论(0) 推荐(0)
摘要:String[] birth = 生日.split("年"); Integer year = Calendar.getInstance().get(Calendar.YEAR);//得出年龄 Integer age = year-Integer.parseInt(birth[0]); 阅读全文
posted @ 2017-06-23 10:05 灬花生酱 阅读(168) 评论(0) 推荐(0)
摘要://判断时间距今天还多少天 public String getBzTime(String bzrq) throws Exception{ Date myDate = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); ... 阅读全文
posted @ 2017-06-23 10:01 灬花生酱 阅读(633) 评论(0) 推荐(0)
摘要:根据2点间的经纬度判断距离 阅读全文
posted @ 2017-06-23 09:51 灬花生酱 阅读(355) 评论(0) 推荐(0)
摘要:只需要填入购买的APPKEY,然后直接调用方法JuheDemo.info(user_name, anchor_card);传入姓名和身份证号,根据获取的返回参数进行拆分,如res=1说明正确。 //进行实名认证 String result=JuheDemo.info(user_name, ancho 阅读全文
posted @ 2017-06-23 09:23 灬花生酱 阅读(3345) 评论(0) 推荐(1)
摘要:上传内容到阿里云服务器,获取保存路径和点击路径。 import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStrea 阅读全文
posted @ 2017-06-22 17:39 灬花生酱 阅读(10442) 评论(3) 推荐(1)