This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Study guide 5 Self Test error

 
elPete Martin
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the chapter 7, the question 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.)

And they say "B" is a good answere:

B. ArrayList<Integer> input = null;
List<Integer> output = null;

I try it with a real compiler and it doesnt work.
Is it a mistake?

Tanx
 
elPete Martin
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
where cna I fin de errata for this book?

tanx again
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic