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
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

addAll and ContainsAll method in collection

 
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

what is addAll and containsAll method do here and what about clear does it add and then clear before displaying using iterator

[ July 10, 2007: Message edited by: Ulf Dittmer ]
 
Rancher
Posts: 43045
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Questions like "what does method XYZ do" are generally answered by the javadocs. addAll, containsAll and clear are all part of the java.util.Collection interface. After reading through their descriptions, what do you think those methods do?

As an aside, I've added CODE tags to your post. They make reading code much easier; please use them when posting code of any length.

Further discussion should take place in this duplicate thread.
[ July 10, 2007: Message edited by: Ulf Dittmer ]
 
    Bookmark Topic Watch Topic
  • New Topic