Challenge: Factory Product Filtering
Завдання
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.
Рішення
solution.java
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 3
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Suggested prompts:
Сумаризуйте цей розділ
Пояснити код у file
Пояснити, чому file не вирішує завдання
Awesome!
Completion rate improved to 2.33
Challenge: Factory Product Filtering
Свайпніть щоб показати меню
Завдання
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.
Рішення
solution.java
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 3
single