jagomart
digital resources
picture1_Basic Programming Concepts Pdf 192270 | Collections


 140x       Filetype PDF       File size 0.15 MB       Source: cs1331.gitlab.io


File: Basic Programming Concepts Pdf 192270 | Collections
introduction to object oriented programming java collections christopher simpkins chris simpkins gatech edu cs1331 georgia tech java collections 1 12 thecollections framework acollection is an object that represents a group ...

icon picture PDF Filetype PDF | Posted on 05 Feb 2023 | 2 years ago
Partial capture of text on file.
        Introduction to Object-Oriented Programming
                         Java Collections
                         Christopher Simpkins
                    chris.simpkins@gatech.edu
      CS1331 (Georgia Tech)   Java Collections                    1/ 12
  TheCollections Framework
        Acollection is an object that represents a group of objects.
        Thecollections framework allows different kinds of collections to
        be dealt with in an implementation-independent manner.
      CS1331 (Georgia Tech)      Java Collections                         2/ 12
  Collection Framework Components
   TheJavacollections framework consists of:
        Collection interfaces representing different types of collections
        (sets, lists, etc)
        General purpose implementations (like ArrayList or HashSet)
        Absract implementations to support custom implementations
        Algorithms defined in static utility methods that operate on
        collections (like Collections.sort(List list))
        Infrastructure interfaces that support collections (like Iterator)
   Today we’ll learn a few basic concepts, then tour the collections library.
      CS1331 (Georgia Tech)       Java Collections                         3/ 12
  TheCollectionInterface
   Collectionistherootinterface of the collections framework,
   declaring basic operations such as:
        add(E e)toaddelementstothecollection
        contains(Object key)todeterminewhetherthecollection
        contains key
        isEmpty()totestthecollection for emptiness
        iterator()togetaninterator over the elements of the
        collection
        remove(Object o)toremoveasingleinstanceofofromthe
        collection, if present
        size()tofindoutthenumberofelementsinthecollection
   Noneofthecollection implementations in the Java library implement
   Collectiondirectly. Instead they implement List or Set.
       CS1331 (Georgia Tech)      Java Collections                          4/ 12
The words contained in this file might help you see if this file matches what you are looking for:

...Introduction to object oriented programming java collections christopher simpkins chris gatech edu cs georgia tech thecollections framework acollection is an that represents a group of objects allows different kinds be dealt with in implementation independent manner collection components thejavacollections consists interfaces representing types sets lists etc general purpose implementations like arraylist or hashset absract support custom algorithms dened static utility methods operate on sort list infrastructure iterator today we ll learn few basic concepts then tour the library thecollectioninterface collectionistherootinterface declaring operations such as add e toaddelementstothecollection contains key todeterminewhetherthecollection isempty totestthecollection for emptiness togetaninterator over elements remove o toremoveasingleinstanceofofromthe if present size tondoutthenumberofelementsinthecollection noneofthecollection implement collectiondirectly instead they set...

no reviews yet
Please Login to review.