Collections are the structural supports of the Java language and are used every day by most Java developers, so it is important to have a section here. Arrays are also covered in this chapter.
In this chapter:
[collection.array] Defining a Java array
[collection.dimensions] Keep arrays one-dimensional
[collection.key] Be wary of collection keys
[collection.containskey] When to use map.containsKey
[collection.name] name describes what a collection represents
[collection.return] Returning owned collections
[collection.nest] Don't nest container classes.
[collection.wrap] Wrap collections in helper classes
[collection.array] Defining a Java array
[collection.dimensions] Keep arrays one-dimensional
[collection.key] Be wary of collection keys
[collection.containskey] When to use map.containsKey
[collection.name] name describes what a collection represents
[collection.return] Returning owned collections
[collection.nest] Don't nest container classes.
[collection.wrap] Wrap collections in helper classes