Example usage for java.util.stream LongStream iterator

List of usage examples for java.util.stream LongStream iterator

Introduction

In this page you can find the example usage for java.util.stream LongStream iterator.

Prototype

@Override
    PrimitiveIterator.OfLong iterator();

Source Link

Usage

From source file:Main.java

public static void main(String[] args) {
    LongStream b = LongStream.empty();
    PrimitiveIterator.OfLong o = b.iterator();
    while (o.hasNext()) {
        System.out.println(o.next());
    }/*from ww  w.j a  v a2s.  c  o m*/
}