Java 17 Recipes


Download 3.2 Mb.
Pdf ko'rish
bet128/245
Sana02.06.2024
Hajmi3.2 Mb.
#1839910
1   ...   124   125   126   127   128   129   130   131   ...   245
Bog'liq
Java 17 Recipes

 How It Works
This enhancement was proposed in Java 12 and in production in Java 14 (JEP 361). This 
functionality introduces a new form of switch label, where only the code to the right of 
the label (->) is to be executed if the label is matched.
For information on the var keyword, see the documentation at 
https://openjdk 
.java.net/jeps/361
.
ChapTer 6 LaMbda expressIons


237
6-11. Summary
Lambda expressions brought new life to the Java language with their introduction in 
Java 8, providing capabilities unavailable to Java developers in the past. Developers of 
desktop, mobile, and enterprise applications alike can now take advantage of the lambda 
expression to create more robust and sophisticated solutions. Lambda expressions 
are a revolutionary change to the language, and they have a significant impact on 
development across the platform.
ChapTer 6 LaMbda expressIons


239
© Josh Juneau, Luciano Manelli 2022 
J. Juneau and L. Manelli, Java 17 Recipes
https://doi.org/10.1007/978-1-4842-7963-2_7
CHAPTER 7
Data Sources and 
Collections
Applications use data structures to store data that can be utilized throughout the lifetime 
of an application instance. The Java language contains several data structures known 
as collection types, and they can be utilized for this purpose. These data structures 
implement the java.util.Collection interface, which provides a variety of 
methods that are useful for adding, removing, and performing tasks against the data that 
is used with the collection. This chapter introduces some of the data structures that can 
be utilized within a Java application for the storage of user data. It discusses some of the 
data structures in detail and introduces operations performed on the data. The concepts 
of pipelines and streams are introduced in this chapter, and it provides recipes that 
demonstrate their usage.

Download 3.2 Mb.

Do'stlaringiz bilan baham:
1   ...   124   125   126   127   128   129   130   131   ...   245




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling