Challenge: Ensuring Fast Delivery for Expensive Products
Tarea
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 aprice
greater than 1000 usingfilter()
method. - Check if all filtered products have a delivery time of 5 days or less using
allMatch()
.
Solución
solution.java
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 3. Capítulo 13
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Awesome!
Completion rate improved to 2.33
Challenge: Ensuring Fast Delivery for Expensive Products
Desliza para mostrar el menú
Tarea
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 aprice
greater than 1000 usingfilter()
method. - Check if all filtered products have a delivery time of 5 days or less using
allMatch()
.
Solución
solution.java
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Awesome!
Completion rate improved to 2.33Sección 3. Capítulo 13
single