La function “recopieElementsAvantJava8” recopie les string qui ne contiennent pas la lettre « a » dans une nouvelle liste. Comment écririez vous le code suivant en utilisant les spécificité de Java 8 ? recopieElementsApresJava8 ( List<String> elements) Solution : Read this tutorial to Understand Java 8 Functional
Articles taggés:java 8
Java : how to convert negative binary to Integer ?
Review the following Java example to convert a negative integer in binary string back to an integer type. The result is NumberFormatException ! The NumberFormatException is due to overflow, the string 11111111111111111111111111111111 (length of 32) are unable to fit into the 32 bits int type ? Note Note Integer has values from -2^31 to 2^31-1 […]

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 […]
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é […]
Java 7 – Java 8 – loop Map / List – forEach examples
Java 7 Java 8 loop Map List exemples java 8 foreach examples : Java 7 Java 8 loop Map List exemples : In this article, we will show you how to loop a List and a Map with the new Java 8 forEach statement. forEach and Map : 1 . Normal way to loop a […]