Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@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