Example usage for java.util PrimitiveIterator.OfLong hasNext

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

Introduction

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

Prototype

boolean hasNext();

Source Link

Document

Returns true if the iteration has more elements.

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 .j  a v  a2  s . c o m
}