Redian新闻
>
帮忙看看???这里应该填什么
avatar
帮忙看看???这里应该填什么# Java - 爪哇娇娃
f*m
1
Design and implement a static method map that takes two arguments, a “
function” f and a list l, and returns a new list generated from applying f
to each element of l. The original list l and its elements remain unchanged.
The method would be declared as follows:
public static java.util.List map(??? f, java.util.List l)
Write code to implement the map function and clearly define what ??? should
be.
avatar
g*g
2
An interface that has "function", in runtime you pass an instance of
implementation class. Check Comparator for an example.

f
unchanged.
should

【在 f****m 的大作中提到】
: Design and implement a static method map that takes two arguments, a “
: function” f and a list l, and returns a new list generated from applying f
: to each element of l. The original list l and its elements remain unchanged.
: The method would be declared as follows:
: public static java.util.List map(??? f, java.util.List l)
: Write code to implement the map function and clearly define what ??? should
: be.

avatar
f*m
3
thanks

【在 g*****g 的大作中提到】
: An interface that has "function", in runtime you pass an instance of
: implementation class. Check Comparator for an example.
:
: f
: unchanged.
: should

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。