由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 帮忙看看???这里应该填什么
相关主题
java class definition and implementation问一个特别土的问题
泛型问题Timer and TimerTask
comparable interface in generic containerjvm是怎么implement monitor的?
spring questioninterface和implementation class
2 Questions about ConstructorComparator Accessor method for SortedSet
eclipse 里面的arguments怎么pass?how to add my own class into a jar file?
请问mvn exec怎么把pom的jar加进去?It's a Java Bug
can applet implements runnable?java web start的奇异问题
相关话题的讨论汇总
话题: map话题: list话题: function话题: implement话题: static
进入Java版参与讨论
1 (共1页)
f****m
发帖数: 38
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.
g*****g
发帖数: 34805
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.

f****m
发帖数: 38
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

1 (共1页)
进入Java版参与讨论
相关主题
java web start的奇异问题2 Questions about Constructor
弱问 如何在Eclipse 下 run java -ea commandeclipse 里面的arguments怎么pass?
Stack Frame of your JVM implementation请问mvn exec怎么把pom的jar加进去?
The shape of JVM stack framecan applet implements runnable?
java class definition and implementation问一个特别土的问题
泛型问题Timer and TimerTask
comparable interface in generic containerjvm是怎么implement monitor的?
spring questioninterface和implementation class
相关话题的讨论汇总
话题: map话题: list话题: function话题: implement话题: static