Converted Guava examples to Java 8