Java tutorial
import java.util.stream.IntStream; public class Main { public static void main(String[] args) { IntStream.generate(() -> 0).limit(5).forEach(System.out::println); } }