@@ -0,0 +1,633 @@
+package javasnack.functionlambdastream;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Aimport java.util.List;%0Aimport java.util.stream.Collectors;%0Aimport java.util.stream.Stream;%0Aimport java.util.stream.Stream.Builder;%0A%0Aimport org.junit.jupiter.api.Test;%0A%0Apublic class TestStreamBuilderDemo %7B%0A%0A    @Test%0A    public void testStreamBuilder() %7B%0A        final Builder%3CString%3E b = Stream.builder();%0A        final List%3CString%3E r = b.add(%22aaa%22).add(%22bbb%22).add(%22ccc%22).add(%22ddd%22)%0A                .build()%0A                .collect(Collectors.toList());%0A        assertThat(r).isEqualTo(List.of(%22aaa%22, %22bbb%22, %22ccc%22, %22ddd%22));%0A    %7D%0A%7D%0A

add TestStreamBuilderDemo