Java tutorial
import java.util.PrimitiveIterator; import java.util.stream.LongStream; public class Main { public static void main(String[] args) { LongStream b = LongStream.empty(); PrimitiveIterator.OfLong o = b.iterator(); while (o.hasNext()) { System.out.println(o.next()); } } }