Java 8
-
Core Java
JDK 8 Streams and Grouping
I wrote about the powerful features of using JDK 8‘s Streams with Java collections in the post Stream-Powered Collections Functionality…
Read More » -
Core Java
Walking Recursive Data Structures Using Java 8 Streams
The Streams API is a real gem in Java 8, and I keep finding more or less unexpected uses for…
Read More » -
Core Java
Mapreduce in Java8
Wordcount is to Mapreduce what “Hello world” is for rest of the programming world. Recently I have been exploring some…
Read More » -
Core Java
Using Java 8 Lambda expressions in Java 7 or older
I think nobody declines the usefulness of Lambda expressions, introduced by Java 8. However, many projects are stuck with Java…
Read More » -
Core Java
Joining Strings in JDK 8
JDK 8 introduced language features such as lambda expressions, streams, and even the new Date/Time API that will change the…
Read More » -
Core Java
Java 8 pitfall – Beware of Files.lines()
There’s a really nice new feature in Java8 which allows you to get a stream of Strings from a file…
Read More » -
Core Java
Using JDK 8 Streams to Convert Between Collections of Wrapped Objects and Collections of Wrapper Objects
I have found Decorators and Adapters to be useful from time to time as I have worked with Java-based applications.…
Read More » -
Core Java
Value-Based Classes
In Java 8 some classes got a small note in Javadoc stating they are value-based classes. This includes a link…
Read More » -
Java核心
Java 8特性指南 – 终极手册 (PDF下载)
编者按:距离Java 8的发布已经有段时间了,就目前看来它的确是一个非常重要的版本。我们之前已经在JavaCodeGeeks发布了一系列专题文章,如玩转Java 8-Lambda表达式和并发,Java 8日期/时间API入门:LocalDateTime 以及 JDK8时代的抽象类vs.接口。同时我们也从其它来源处引用了15个必读的Java 8教程。当然,我们也对它的一些短板进行了验证,如Java 8的暗面。为了读者们更好的阅读体验,现在是时候整合所有Java 8的主要特性于一处了。一起来享受它吧! 目录 1. 简介 2. Java语言的新特性 2.1. Lambda表达式和函数式接口 2.2. 接口的默认方法和静态方法 2.3. 方法引用…
Read More »