Added IntStream.of constructor

This commit is contained in:
antmordel 2019-06-18 08:25:42 +02:00
parent 44dfb1a076
commit 7c21f2e279
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ public class IntStreamsConversionsUnitTest {
@Test
public void intStreamToString() {
String first3numbers = IntStream.range(0, 3)
String first3numbers = IntStream.of(0, 1, 2)
.mapToObj(String::valueOf)
.collect(Collectors.joining(", ", "[", "]"));