Relevant Reading Material

Java Collections

Collections are containers that groups together mutliple elements, e.g., lists, sets, queues. Collections also provide some operations on their grouped items such as, retrieve, manipualte etc.

The Java Collections Framework is a unified architecture that contains the following

  • Interfaces - The ADTs.

  • Implementations - Implemtations of the ADTs.

  • Algorithms - Computations on the ADTs, like sorting, shuffling etc.

collectionsInterfaces

Traversing collections

There are many ways to traverse. We will a couple today and more later (aggregate operations).

Iterator

Iterator is an interface. We will focus on 2 of the 4 methods in the interface

  • hasNext() is there one more element

  • next() get the next element

Java I/O

TBD.

Regular Expressions

TBD.