摘要:
<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the 阅读全文
摘要:
排序集合中的对象 1.源码介绍 1.1 Stream sorted() 源码查看: /** * Returns a stream consisting of the elements of this stream, sorted * according to natural order. If th 阅读全文
摘要:
BigDecimal 类的 compareTo() 和 equals()方法 1. compareTo()源码 /** * Compares this BigDecimal with the specified BigDecimal. * Two BigDecimal objects that ar 阅读全文
摘要:
使用Calendar计算日期需要注意的问题 1. Calendar.getInstance()方法 相关源码: Gets a calendar using the default time zone and locale. The Calendar returned is based on the 阅读全文
摘要:
获取系统当前日期 有些时候,我们只需要获取当前的年月日信息,在一些老的系统中,可能使用如下语句: public class Main { public static void main(String[] args) { Date today = new Date(); today.setHours( 阅读全文