Example usage for java.util.stream DoubleStream iterator

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

Introduction

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

Prototype

@Override
    PrimitiveIterator.OfDouble iterator();

Source Link

Usage

From source file:Main.java

public static void main(String[] args) {
    DoubleStream b = DoubleStream.of(1.1, 2.2, 3.3, 4.4, 5.5);
    PrimitiveIterator.OfDouble o = b.iterator();
    while (o.hasNext()) {
        System.out.println(o.next());
    }/*  w w w.j av  a  2  s.  c o m*/
}