Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- total = 0;
- total = getList().stream().map((item) -> item.getQty()).reduce(total, Integer::sum);
- return total;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement