随笔分类 -  java

摘要:import com.google.common.collect.MapDifference;import com.google.common.collect.Maps;import java.util.Map;public class MapUtil { /** * difference * Ma 阅读全文
posted @ 2020-11-18 09:47 AmbitiousMice 阅读(6998) 评论(0) 推荐(1)
摘要:java 类加载过程 阅读全文
posted @ 2020-03-31 14:42 AmbitiousMice 阅读(171) 评论(0) 推荐(0)
摘要:1.官方文档:http://jxls.sourceforge.net/reference/reader.html 2.demo git地址:https://bitbucket.org/leonate/jxls-demo 3.maven添加 <dependency> <groupId>org.jxls 阅读全文
posted @ 2017-03-07 17:56 AmbitiousMice 阅读(4232) 评论(0) 推荐(0)
摘要:package com.ipmotor.sm.db;import java.util.LinkedList;import java.util.Queue;import java.util.Stack;/** * 测试jdk中的栈和队列 * @author scott * */public class 阅读全文
posted @ 2016-10-09 11:18 AmbitiousMice 阅读(213) 评论(0) 推荐(0)
摘要:Calendar中月份month得取值是从0开始,到11,对应着日历中的1-12月。所以在用此取月份的话,需要在原有基础上加1. 阅读全文
posted @ 2016-10-08 16:12 AmbitiousMice 阅读(1751) 评论(0) 推荐(0)
摘要:输出结果: 年: 2012月: 1日: 13时: 17分: 28秒: 19当前时间毫秒数:1326446899902Fri Jan 13 17:28:19 CST 2012Fri Jan 13 17:28:19 CST 2012格式化后的日期:2012-01-13 17:28:19字符串转成日期:F 阅读全文
posted @ 2016-09-28 19:49 AmbitiousMice 阅读(2028) 评论(0) 推荐(0)
摘要:* 英文简写(默认)如:2010-12-01 */ public static String FORMAT_SHORT = "yyyy-MM-dd"; /** * 英文全称 如:2010-12-01 23:15:06 */ public static String FORMAT_LONG = "yy 阅读全文
posted @ 2016-09-28 14:36 AmbitiousMice 阅读(619) 评论(0) 推荐(0)