该文被密码保护。 阅读全文
posted @ 2019-03-21 14:51 卡卡学习 阅读(0) 评论(0) 推荐(0) 编辑
摘要: import lombok.extern.slf4j.Slf4j;import org.apache.poi.hssf.usermodel.*;import org.apache.poi.hssf.util.HSSFColor;import org.apache.poi.ss.util.CellRa 阅读全文
posted @ 2019-03-21 11:06 卡卡学习 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 1.集合中含有字符串排序 >须将字符串字段转为Integer类型排序 2.方式一:集合排序 集合.sort(Comparator.comparing(集合中的对象::getCancelFansCount)) 倒序:Collections.reverse(list); 方式二: 集合= 集合.stre 阅读全文
posted @ 2019-03-21 10:43 卡卡学习 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 方式一:0% NumberFormat percent = NumberFormat.getOercentInstance(); //设置精确到几位小数 percent.setMaximumFractionDigits(1); 方式二:0.00% DecimalFormat df = new Dec 阅读全文
posted @ 2019-03-20 16:06 卡卡学习 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 1.idea中设置自动生成序列id setting-->Inspections-->Serialization issues --> 选中 Serializable class without 'serialVersionUID' 2.idea中配置文件乱码 编码一般都修改为utf-8(settin 阅读全文
posted @ 2019-03-20 15:45 卡卡学习 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-03-20 14:49 卡卡学习 阅读(304) 评论(0) 推荐(0) 编辑