add some java 8 code snippets