Challenge: Ensuring Fast Delivery for Expensive Products
Oppgave
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()
.
Løsning
solution.java
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 13
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Awesome!
Completion rate improved to 2.33
Challenge: Ensuring Fast Delivery for Expensive Products
Sveip for å vise menyen
Oppgave
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()
.
Løsning
solution.java
Alt var klart?
Takk for tilbakemeldingene dine!
Awesome!
Completion rate improved to 2.33Seksjon 3. Kapittel 13
single