Java IntStream create empty streams
import java.util.stream.IntStream; public class Main { public static void main(String[] args) { // Creates an empty stream of integers IntStream numbers = IntStream.empty(); System.out.println(numbers.count()); }//from w w w . jav a 2 s. co m }