Refactor the JAVA example to Java 8 lambda version

Spark 1.0 has a great feature supporting the Java 8 lambda version but I barely find any Java 8 example for Spark 1.0. 
I refactor the previous Java example using JAVA 8 lambda and try to keep logic the same. 
I think this is a good example for Java developer to get start.