The Collections Framework in Java, gives you lists,sets, maps, and queues to satisfy most of your coding needs.
A collection represents a group of objects, known as its elements. This framework is provided in the java.util package.
There are a few basic operations you'll normally use with collections:
- Add objects to the collection.
- Remove objects from the collection.
- Find out if an object (or group of objects) is in the collection.
- Retrieve an object from the collection (without removing it).
- Iterate through the collection, looking at each element (object) one after another.
0 comments:
Post a Comment