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