摘要:
1 // 使用默认时区和语言环境获得一个日历 2 Calendar cal = Calendar.getInstance(); 3 // 赋值时年月日时分秒常用的6个值,注意月份下标从0开始,所以取月份要+1 4 System.out.println("年:" + cal.get(Calendar. 阅读全文
posted @ 2021-05-31 17:43
小拐
阅读(69)
评论(0)
推荐(0)
摘要:
//加法 BigDecimal result1 = num1.add(num2); BigDecimal result12 = num12.add(num22); //减法 BigDecimal result2 = num1.subtract(num2); BigDecimal result22 = 阅读全文
posted @ 2021-05-31 17:35
小拐
阅读(53)
评论(0)
推荐(0)
摘要:
1 /** 2 * Filter测试. 3 * 4 * @param sex 根据性别筛选. 5 */ 6 public void testFilter(List<StreamBean> streamBeanList, String sex) { 7 8 if (CollectionUtils.is 阅读全文
posted @ 2021-05-31 17:29
小拐
阅读(73)
评论(0)
推荐(0)
摘要:
1 /** 2 * 测试排序. 3 * 4 * @param streamBeanList 5 */ 6 public void testSorted(List<StreamBean> streamBeanList) { 7 8 if (CollectionUtils.isNotEmpty(stre 阅读全文
posted @ 2021-05-31 17:27
小拐
阅读(110)
评论(0)
推荐(0)
摘要:
1 /** 2 * Collectors过滤抽取合并字符串测试. 3 * 4 * @param streamBeanList 5 */ 6 public void testCollectors(List<StreamBean> streamBeanList) { 7 8 if (Collection 阅读全文
posted @ 2021-05-31 17:26
小拐
阅读(52)
评论(0)
推荐(0)
摘要:
1 /** 2 * Statistics测试. 3 * 4 * @param streamBeanList 5 */ 6 public void testStatistics(List<StreamBean> streamBeanList) { 7 8 IntSummaryStatistics in 阅读全文
posted @ 2021-05-31 17:25
小拐
阅读(89)
评论(0)
推荐(0)