Add JDK8 code sample