Add Java 8 code snippets