java 8 exercise

commit java 8 exercise