Java tutorial
import java.util.stream.LongStream; public class Main { public static void main(String[] args) { LongStream b = LongStream.range(1L, 5L); b.forEach(System.out::println); } }