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(); }