About Question enthuware.ocpjp.v8.2.1756 :
Posted: Sat Jan 20, 2018 5:09 pm
The question is 'Which interface from java.util.function package can be used to refactor this code?'. For me, option b - Function works fine..
Code: Select all
Function<Double, Boolean> tt = d -> d >= 0.0;
isOK = tt.apply(bal);