From af51c4a12d638005ea8afada01718ddba0bef0d5 Mon Sep 17 00:00:00 2001 From: tominaga Date: Fri, 17 Jun 2022 04:10:53 +0900 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E8=A6=8F=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Test/src/com/tomi/Test2.java | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Test/src/com/tomi/Test2.java diff --git a/Test/src/com/tomi/Test2.java b/Test/src/com/tomi/Test2.java new file mode 100644 index 0000000..08e06ef --- /dev/null +++ b/Test/src/com/tomi/Test2.java @@ -0,0 +1,26 @@ +package com.tomi; + +import java.util.List; + +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +class Test2 { + + @BeforeEach + void setUp() throws Exception { + } + + @AfterEach + void tearDown() throws Exception { + } + + @Test + void testStream() { + Listnumbers = List.of("1","2","3","4"); + + numbers.stream().forEach(v -> System.out.printf( "Number=%s\n", v)); + } + +} -- 2.19.0