Lambda Expressions in JAVA 8 (Simple Tutorial)

Lambda Expression: Definition Before reading this tutorial try to Understand Java 8 Functional interfaces in 5 min Lambdas expression is considered the biggest novelty in Java 8, it is a form of method, more compact than a standard method, for which the name is implicit and the parameters can be omitted, as well as their […]

En Lire Plus

Understand Java 8 Functional (Simple Tutorial)

A functional interface is an interface with a single abstract method. The goal is to define the signature of a method that can be used to pass as a parameter : A reference to a static method A reference to an instance method A reference to a manufacturer A lambda expression. A functional interface can […]

En Lire Plus

Writing Nashorn Command-Line Scripts with Nake

Nake is a simplified version of Make (Cake, Jake, Rake) for Java 8 based on the Nashorn Javascript Engine. I wrote Nake to automate common tasks in our daily project business here at Pondus. You define tasks in a project-specific Nakefile and call those tasks from the command line. Tasks are written in Javascript empowered […]

En Lire Plus

Java : multi-line string, text blocks

Java multi-line string text blocks : This article will show you a few ways to declare and use a multi-line string in Java. String + String + String StringBuilder String.format StringWriter String.join (Java 8) Files.lines (Java 8) (“””) Java 13 and Java 14 text blocks (preview feature) Java multi-line string text blocks : Review an […]

En Lire Plus

Patterns optionels

Patterns optionels : De nombreuses choses ont été introduites en Java 8 qui changent la façon de concevoir les applications et les API. Les lambdas bien sûr, l’API Stream également. Si tu es un habitué de ce blog, cher et précieux lecteur, tu es déjà au courant. Patterns optionels : Un autre élément a été […]

En Lire Plus