Skip to content

Instantly share code, notes, and snippets.

@jmaciasluque
Created August 11, 2015 13:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jmaciasluque/eb7254ceeaff3432992c to your computer and use it in GitHub Desktop.
private void exercise2() {
List<String> list = new ArrayList<>(Arrays.asList("alpha", "bravo", "charlie", "delta", "echo", "foxtrot"));
list.removeIf(word -> (word.length() % 2) != 0);
System.out.println(list);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment