Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ruSO Q#902546
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { List<Double> arg = new ArrayList<>(); arg.add(4.0); arg.add(5.0); arg.add(0.0); double sum = arg.stream() .mapToDouble(a -> a) .reduce(1, (a, b) -> a * b); System.out.println(sum); } }
[
+
]
Show input
Compilation time: 1.66 sec, absolute running time: 0.44 sec, cpu time: 0.5 sec, memory peak: 25 Mb, absolute service time: 2,1 sec
edit mode
|
history
0.0