Challenge: Ensuring Fast Delivery for Expensive Products
Task
Swipe to start coding
In the store, there's a rule: if a product costs more than $1000, it must be delivered within 5 days. You need to check whether this rule is followed for all expensive products.
- Filter the list of
products, keeping only those with apricegreater than 1000 usingfilter()method. - Check if all filtered products have a delivery time of 5 days or less using
allMatch().
Solution
solution.java
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 13
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Can you explain this in simpler terms?
What are some examples related to this topic?
Where can I learn more about this?
Awesome!
Completion rate improved to 2.33
Challenge: Ensuring Fast Delivery for Expensive Products
Swipe to show menu
Task
Swipe to start coding
In the store, there's a rule: if a product costs more than $1000, it must be delivered within 5 days. You need to check whether this rule is followed for all expensive products.
- Filter the list of
products, keeping only those with apricegreater than 1000 usingfilter()method. - Check if all filtered products have a delivery time of 5 days or less using
allMatch().
Solution
solution.java
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 13
single