Skip to content

Instantly share code, notes, and snippets.

@bufferings
Created March 23, 2021 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bufferings/f9bb11a06b3470eb58f65d802d233e33 to your computer and use it in GitHub Desktop.
Save bufferings/f9bb11a06b3470eb58f65d802d233e33 to your computer and use it in GitHub Desktop.
@Test
void testToList() {
List<String> list = Stream.of("a", "b").map(String::toUpperCase).toList();
assertEquals("[A, B]", list.toString());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment