From 59c465cfb230588f4ae31bf0bf4633fafbc4b5b1 Mon Sep 17 00:00:00 2001 From: Mateus Caetano <117482039+mateusramoscaetano@users.noreply.github.com> Date: Sat, 9 Sep 2023 08:18:57 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20Corre=C3=A7=C3=A3o=20do=20m=C3=A9todo=20?= =?UTF-8?q?usado=20no=20primeiro=20exemplo=20para=20"stream()"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 02e87c7..812e1fa 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ public class CarrinhoDeCompras { if (itemList.isEmpty()) { throw new RuntimeException("A lista está vazia!"); } - return itemList.stream_api() + return itemList.stream() .mapToDouble(item -> item.getPreco() * item.getQuant()) .sum(); }