Skip to content

Instantly share code, notes, and snippets.

@orend
Last active October 24, 2019 16:48
Show Gist options
  • Save orend/cd42e47d378cb8fe7334bc99e63fa7f8 to your computer and use it in GitHub Desktop.
Save orend/cd42e47d378cb8fe7334bc99e63fa7f8 to your computer and use it in GitHub Desktop.
Collections.list(new StringTokenizer(str, ",")).stream()
.map(token -> (String) token)
.collect(Collectors.toList());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment