Java 8 Functional processing http://aruld.info/why-java-8-will-be-a-top-contender-for-java-next-languages/
employees.stream() | |
.filter(e -> e.length() > 1) | |
.map(s -> s.substring(0, 1).toUpperCase() + s.substring(1)) | |
.collect(joining(",")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment