Skip to content

Instantly share code, notes, and snippets.

@yavuztas
Last active August 27, 2019 15:21
Show Gist options
  • Save yavuztas/ff2a35695dcb6cd2ff32976114c08005 to your computer and use it in GitHub Desktop.
Save yavuztas/ff2a35695dcb6cd2ff32976114c08005 to your computer and use it in GitHub Desktop.
Created with Copy to Gist
String[] array = new String[] {
"apple", "banana", "orange", "avocado", "mango"
};
List<String> filtered = UtilsForCollections.filterArray(array, v -> v.startsWith("a"));
filtered.forEach(System.out::println);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment