package com.tomi; import java.util.List; import java.util.Optional; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; class Java10 { @BeforeEach void setUp() throws Exception { } @AfterEach void tearDown() throws Exception { } @Test void local_valiable_type() { var s = "aaaaa"; System.out.println("s class=" + s.getClass().getName() ); var i = 10; System.out.println("i vakue=" + i); } @Test void other() { var l = List.of(1,2,10,3); l.forEach(v -> System.out.println(v)); Optional.empty(); } }