Skip to content

Instantly share code, notes, and snippets.

@gabrilogos1985
Created December 3, 2014 05:52
Show Gist options
  • Save gabrilogos1985/a35e94ed402bc8fafe53 to your computer and use it in GitHub Desktop.
Save gabrilogos1985/a35e94ed402bc8fafe53 to your computer and use it in GitHub Desktop.
assertThat(words.stream().
map(e -> Dictionary.getCursing().contains(e)).
reduce(0,(counter,result) -> counter + result), equalTo("Cursing"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment