下面的双重校验锁单例是线程安全的吗? public class Singleton { private static Singleton instance = null private Singleton()
Oct 28, 2018
Java 8 的一个重要新特性就是 Stream。 Stream 是用函数式编程方式在
Jul 14, 2018
Sometimes we need to parse strings like this: "1234567890","James",man,"New York, NY, USA" And the output we need is as follows: "1234567890" "James" man "New York, NY, USA" We can try the following code:
Mar 24, 2018
前几天 JDK 10 正式发布了,距离上一次 JDK 9 发布才没几周时间,但是 JDK
Mar 24, 2018
之前写项目的时候需要通过 Java API 实现 Consumer 每次都从最开始消费,也就是
Mar 6, 2018