About Question enthuware.ocpjp.ii.v11.2.1854 :
Posted: Sat Jan 18, 2020 1:32 pm
I am not sure. In some cases by writing Lamda I have to directly write type(s)
but here it is just
Doer d = (a, b)->b.substring(0, a);
why not
Doer<Integer, String> d = (a, b)->b.substring(0, a);
but here it is just
Doer d = (a, b)->b.substring(0, a);
why not
Doer<Integer, String> d = (a, b)->b.substring(0, a);