Challenge: Factory Product Filtering
Aufgabe
Swipe to start coding
The factory produces products represented by Product
objects, which have the fields id
, weight
, and quality
.
- Filter the products to keep only those with a
quality
of"GOOD"
and aweight
greater than 10.0. - Extract only the
id
of the filtered products using a method reference. - Once the result is collected into a list, print the
id
of the selected products using a method reference toprintln
.
Lösung
solution.java
War alles klar?
Danke für Ihr Feedback!
Abschnitt 2. Kapitel 3
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Awesome!
Completion rate improved to 2.33
Challenge: Factory Product Filtering
Swipe um das Menü anzuzeigen
Aufgabe
Swipe to start coding
The factory produces products represented by Product
objects, which have the fields id
, weight
, and quality
.
- Filter the products to keep only those with a
quality
of"GOOD"
and aweight
greater than 10.0. - Extract only the
id
of the filtered products using a method reference. - Once the result is collected into a list, print the
id
of the selected products using a method reference toprintln
.
Lösung
solution.java
War alles klar?
Danke für Ihr Feedback!
Awesome!
Completion rate improved to 2.33Abschnitt 2. Kapitel 3
single