O'Reilly logo

JavaBeans Unleashed by Rick Leinecker, Dr. Donald Doherty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Collections

A collection is an object that represents a group of objects. You can use collections to represent relationships among objects. These relationships can be between one object and another object (one-to-one), one object and many other objects (one-to-many), or many objects and many other objects (many-to-many). A simple array can be used to represent a one-to-one relationship. Special collection classes are essential when you want to represent one-to-many and many-to-many relationships.

Collections can be gathered together in many different ways. The way you represent a collection of objects largely depends on the kinds of objects you're collecting and what you want to do with them. There are five types of collections available in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required