Posts by Caique Ribeiro • 68 points
3 posts
-
2
votes1
answer2891
viewsQ: Java 8 - Browse list, change found case, if not, add
In a shopping cart app, I have inside the class CarrinhoCompras the following attribute: List<Item> itens = new ArrayList<>(); And a method to add item, which receives a product, its…
-
1
votes2
answers1284
viewsA: Foreach with lambda which returns the sum of iterated items
Lucas. I do not know if the foreach is a good option to add value, and also I could not do using it. What I normally use is to return a stream, use a map to get the values and a reduce later, to add…
-
2
votes1
answer87
viewsA: Java Interactions
You can even. When developing in Java for Desktop it is possible to create different interactions with the user since there is the concept of windows that are built in Java even then has many…
javaanswered Caique Ribeiro 68