sample java 8 code.