Example usage for java.util.stream IntStream asDoubleStream

List of usage examples for java.util.stream IntStream asDoubleStream

Introduction

In this page you can find the example usage for java.util.stream IntStream asDoubleStream.

Prototype

DoubleStream asDoubleStream();

Source Link

Document

Returns a DoubleStream consisting of the elements of this stream, converted to double .

Usage

From source file:Main.java

public static void main(String[] args) {
    IntStream i = IntStream.of(6, 5, 7, 1, 2, 3, 4);
    DoubleStream d = i.asDoubleStream();
    d.forEach(System.out::println);
}