Changes in new versions / Java 11
var in lambda parameters
New String methods
Reading and writing a file in one call
Optional.isEmpty
Negating a predicate: Predicate.not
Collection to array
Path.of instead of Paths.get
HTTP client in the standard library
Running a source file without compiling
Java EE modules removed
Running a source file without compiling
This example is in the full version, available in the app stores:
Java Recipes
App Store
Code Recipes
App Store
Already bought it? Sign in to your account