1. Learn
  2. /
  3. Courses
  4. /
  5. Input/Output and Streams in Java

Connected

Exercise

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.

Instructions

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