Demo entry 6777975

java

   

Submitted by anonymous on Dec 12, 2018 at 03:31
Language: Java. Code size: 172 Bytes.

List<String> collected = Stream.of("a", "b", "c")
                               .collect(Collectors.toList());
assertEquals(Arrays.asList("a", "b", "c"), collected);

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).