Kathy Juyao

Greenhorn
+ Follow
since Sep 29, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kathy Juyao

I have question on K&B book Chapter7 Q16, see below.

16.
Given a method declared as:

public static <E extends Number> List<? super E> process(List<E> nums)

A programmer wants to use this method like this:

// INSERT DECLARATIONS HERE

output = process(input);


Which pairs of declarations could be placed at // INSERT DECLARATIONS HERE to allow the code to compile? (Choose all that apply.)

ArrayList<Integer> input = null;

ArrayList<Integer> output = null;

ArrayList<Integer> input = null;

List<Integer> output = null;

ArrayList<Integer> input = null;

List<Number> output = null;

List<Number> input = null;

ArrayList<Integer> output = null;

List<Number> input = null;

List<Number> output