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 […]
Catégorie: Java 8
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 […]

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 […]
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 […]
Solution for : Cannot make a static reference to the non-static method
if you have this error that mean you are using your Repository interface in the place of you using and instance of it ,Exemple : if you have an interface PersonnelRepository and you want to use the function getOne(). if you do like that PersonnelRepository.getOne(id) you will have the error Cannot make a static reference […]
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é […]