Updated java8 examples