Java tutorial
import java.util.stream.IntStream; public class Main { public static void main(String[] args) throws Exception { IntStream.range(1, 4).mapToObj(i -> "a" + i).forEach(System.out::println); } }