• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

kb6 chapter 7 backed collections

 
Ranch Hand
Posts: 68
MyEclipse IDE PHP Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First of all, is there a pdf of the kb book ( I have the book) that has similar pdf pages to book pages? Book page 828 has pdf page 866 which is bullshit. Sorry ..Is there a new version of the kb book (last one 2008) planned to change this?
Regarding book page 591, exam watch: pollfirst on a)copy and b) collection is explained. Transmitting this explanation to the example on page 589:
first output of two outputs is {a=ant, d=...} {d=dog}
so if:
subMap.pollfirstEntry() --> d=dog removed from map and submap
map.pollfirstEntry() --> a= ant removed from map

Is it correct?

What if {d=dog, ...} {d=dog}
and then map.pollfirstEntry() ? Using delete first on original collection when first elements in copy and original are similar.
Are both dogs deleted?

I will try it now in my editor, but would like to understand the result.
 
Sheriff
Posts: 9708
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's very hard to understand your question without the book in hand. Can you be more clear about your question...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic