nus-cs2030 / 2021-s2

2 stars 2 forks source link

AY19/20Sem2 Q5 #361

Open Guo-Yujia opened 3 years ago

Guo-Yujia commented 3 years ago

Summary

Anyone knows what the answer is for this question?

Screenshots (if any):

image

suyatinglaura commented 3 years ago

Hi, you may refer to #309

brendancjz commented 3 years ago

BiFunction<Character, String, Integer> s = new BiFunction<Character, String, Integer>() { public Integer apply(Character c, String s) { return (c + s).length(); } }

Herrekt commented 3 years ago

I got about the same here BiFunction<Character, String, Integer> s = new BiFunction<Character, String, Integer>() { @Override public Integer apply(Character c, String s) { return (c + s).length(); } };

Radix-huang commented 3 years ago

same BiFunction<Character, String, Integer> s = new BiFunction<Character, String, Integer>() { public Integer apply(Character i, String j) { return (i + j).length(); } }