1. 学习
  2. /
  3. 课程
  4. /
  5. Input/Output and Streams in Java

Connected

练习

Calculate total sales

An online store processes daily sales transactions. Each sale amount needs to be increased by 10% tax before calculating the total revenue for financial reporting.

说明

100 XP
  • Use .map() to increase each sale amount by 10%.
  • Sum all updated values using .reduce().