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

confuse statement ?

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is an instruction in 2nd chapter of Tiger Developer book :

Map<String,List<List<int[]>>> map = getWeiredMap();

Am I understanding it right ?

Map < String , List<List<int[]>> > map = getWeiredMap();

The key can only be String .

Now value :

List<List<int[]>>


List< List<int[]> >

The value can only be a List .

Now what this list is having ...

List has index-value pair , index are not necessary ... So value of List is :

List<int[]>

And what this list is having .... is confusing me ...

Can any body help ...

thanks a lot .
 
Joyce Lee
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
List<int[]>

And what this list is having .... is confusing me ...


The element type for this list must be an int array.

Hope the following example could clear some of your doubts.
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Joyce ,

This is exactly what I am looking for ...

How was your Beta-Tiger exam ... Very good ... right ?
 
Joyce Lee
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How was your Beta-Tiger exam ... Very good ... right ?

Well, it's a 5-hours exam...just hope I didn't commit too many careless mistakes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic