Update example to Java 8.
Don't test this example for now.