上一页 1 ··· 5 6 7 8 9
摘要: 转载来源:https://blog.csdn.net/qq_36443497/article/details/79663663?utm_source=blogxgwz9 在使用工具类Arrays.asList()把数组转换成集合时,不能使用其修改集合的相关方法,他的add/remove/clear方 阅读全文
posted @ 2018-12-06 22:46 sunseeker 阅读(562) 评论(0) 推荐(0) 编辑
摘要: 关键字:包装类的缓存,包装类之间数值的比较 来源:https://www.cnblogs.com/hdwang/p/7009449.html https://www.cnblogs.com/DreamDrive/p/5422761.html https://blog.csdn.net/wxy9410 阅读全文
posted @ 2018-12-06 14:14 sunseeker 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 转载:https://blog.csdn.net/qq_25827845/article/details/53868815 1.String源码中equals大致写法: 2. 模仿String equals源码 阅读全文
posted @ 2018-12-05 16:58 sunseeker 阅读(3348) 评论(0) 推荐(0) 编辑
摘要: 来源:https://www.cnblogs.com/brucecloud/p/5509921.html 虽然 Java 虚拟机定义了 boolean 这种数据类型,但是只对它提供了非常有限的支持。在 Java 虚拟机中没有任何供 boolean 值专用的字节码指令,在 Java 语言之中涉及到 b 阅读全文
posted @ 2018-12-05 15:39 sunseeker 阅读(851) 评论(0) 推荐(0) 编辑
摘要: 我们经常配套使用substring和indexof来配套截取字符串。 1.substring:(左闭右开) 参数 beginIndex -- 起始索引(包括), 索引从 0 开始。 endIndex -- 结束索引(不包括)。 beginIndex -- 起始索引(包括), 索引从 0 开始。 en 阅读全文
posted @ 2018-11-28 15:59 sunseeker 阅读(25479) 评论(0) 推荐(0) 编辑
摘要: .点击年份马上关闭窗口并且赋值 html代码: jq代码: //这个js是用于按年份查询的日期控件 2.起始月份 html代码: js代码: 阅读全文
posted @ 2018-11-28 15:28 sunseeker 阅读(2362) 评论(0) 推荐(0) 编辑
摘要: 1.获取当前是当年的第几天 java.util.Calendar c = Calendar.getInstance(); int day = c.get(Calendar.DAY_OF_YEAR); 阅读全文
posted @ 2018-11-21 10:55 sunseeker 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1.小数格式化后转字符串百分数(带%)输出 NumberFormat nt = NumberFormat.getPercentInstance(); //设置百分数精确度2即保留两位小数 nt.setMinimumFractionDigits(1); //值 String str= nt.forma 阅读全文
posted @ 2018-11-21 10:54 sunseeker 阅读(721) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9