Sample code of Java8 newly function.