Question: We want a lambda expression using a standard functional interface that will return a student's new gpa if a specified number of points were to

We want a lambda expression using a standard functional interface that will return a student's new gpa if a specified number of points were to be added to the current gpa. [We don't want to actually change the gpa. ] Assume Student class has getters and setters for its instance variables, and that gpa is stored as an int. Select the correct lambda! Function Student, Integer> adjustGPA = (s, add) -> s.setGPA(s.getGPAO) + add); BiConsumer Student, Integer> adjustGPA = (s, add) -> S.setGPA(s.getGPA() + add); == BiPredicate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
