import java.util.*; List test = new ArrayList<>(); test.add("a"); test.add("b"); test.forEach((x) -> { println(x); });