Skip to content

Instantly share code, notes, and snippets.

@yavuztas
Last active August 27, 2019 15:23
Show Gist options
  • Save yavuztas/affe42ac0ce5a0c630a1a55a73228d74 to your computer and use it in GitHub Desktop.
Save yavuztas/affe42ac0ce5a0c630a1a55a73228d74 to your computer and use it in GitHub Desktop.
public static <T> List<T> toList(T[] array) {
return Arrays.stream(array).collect(Collectors.toList());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment