Challenge: Factory Product Filtering
Tarefa
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
qualityof"GOOD"and aweightgreater than 10.0. - Extract only the
idof the filtered products using a method reference. - Once the result is collected into a list, print the
idof the selected products using a method reference toprintln.
Solução
solution.java
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 3
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Awesome!
Completion rate improved to 2.33
Challenge: Factory Product Filtering
Deslize para mostrar o menu
Tarefa
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
qualityof"GOOD"and aweightgreater than 10.0. - Extract only the
idof the filtered products using a method reference. - Once the result is collected into a list, print the
idof the selected products using a method reference toprintln.
Solução
solution.java
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 3
single