Example usage for java.util PrimitiveIterator.OfLong next

List of usage examples for java.util PrimitiveIterator.OfLong next

Introduction

In this page you can find the example usage for java.util PrimitiveIterator.OfLong next.

Prototype

E next();

Source Link

Document

Returns the next element in the iteration.

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());
    }// w w  w .ja  va2  s.  c om
}