Java demo for JDK8