Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

confuse statement ?

 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Please do not shoot the fish in this barrel. But you can shoot at this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic