随笔分类 - 方法
摘要: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...
阅读全文
摘要:在实体类中进行排序: 1:实现implements Comparable<Object>接口来进行比较的重写 2:添加compareTo方法 进行比较 3:Collections.sort(X);调用方法传入集合进行排序
阅读全文
摘要:String[] birth = 生日.split("年"); Integer year = Calendar.getInstance().get(Calendar.YEAR);//得出年龄 Integer age = year-Integer.parseInt(birth[0]);
阅读全文
摘要://判断时间距今天还多少天 public String getBzTime(String bzrq) throws Exception{ Date myDate = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); ...
阅读全文
摘要:只需要填入购买的APPKEY,然后直接调用方法JuheDemo.info(user_name, anchor_card);传入姓名和身份证号,根据获取的返回参数进行拆分,如res=1说明正确。 //进行实名认证 String result=JuheDemo.info(user_name, ancho
阅读全文
摘要:上传内容到阿里云服务器,获取保存路径和点击路径。 import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStrea
阅读全文