Institute of Computer Science
  1. Courses
  2. 2019/20 spring
  3. Object-Oriented Programming (Narva College) (LTAT.NR.003)
ET
Log in

Object-Oriented Programming (Narva College) 2019/20 spring

  • Home
  • Materials
  • Grading
  • Java Glossary
  • Cheat sheet (S1-S6)
  • Source Example
  • Links
Chapter 12

Introduction to Java Collections Framework

A data structure is a collection of data organized in some fashion. In object-oriented thinking, a data structure is known as a container. A container is an object that groups multiple elements into a single unit. Typically, a container represents data items that form a natural group, such as a mail folder (a collection of letters), or a telephone directory (a mapping of names to phone numbers).

Java Collections Framework is a collection of interfaces and classes which helps in storing and processing the data efficiently. The following diagram shows a brief overview of Java Collections Framework with its commonly-used interfaces and classes:

In the diagram, it is clearly seen that Java Collections Framework supports two types of containers (two separate branches):

  • a collection - for storing a collection of elements;
  • a map - for storing key/value pairs.

In this chapter (and course), we will focus only on the following interfaces: List, Queue, Deque, Set and Map.

Chapter
  • Institute of Computer Science
  • Faculty of Science and Technology
  • University of Tartu
In case of technical problems or questions write to:

Contact the course organizers with the organizational and course content questions.
The proprietary copyrights of educational materials belong to the University of Tartu. The use of educational materials is permitted for the purposes and under the conditions provided for in the copyright law for the free use of a work. When using educational materials, the user is obligated to give credit to the author of the educational materials.
The use of educational materials for other purposes is allowed only with the prior written consent of the University of Tartu.
Terms of use for the Courses environment