A few code exemples using Java 8