Add java8 sample code.