Question: Use Streams to find the students with a Grade Average of a B or Better ( > 7 9 % ) Declare a List named
Use Streams to find the students with a Grade Average of a B or Better
Declare a List named studentsWithBOrBetter by doing the following:
Use students
Create a Stream
Filter using the Student Object methods to keep the students who have a B or Better Average
Collect it to a List.
Use a for loop to print each of the studentsWithBOrBetter using the describe method.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
