Key Features in JDK 12 to 17 LTS
摘要
In the section on API innovations, I discuss extensions to the String class in Sect. 2.6. Next, in Sect. 2.7, we will look at various new features in the Stream API, specifically the so-called teeing collector and the methods toList() and mapMulti(), the latter being a simplification of flatMap().