02a Java_collections.pdf

  • Uploaded by: KASIM INFO
  • 0
  • 0
  • April 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View 02a Java_collections.pdf as PDF for free.

More details

  • Words: 98
  • Pages: 1
All collections implements Collection interface ArrayList

List

LinkedList HashSet

Set

02- Defining & Iterating Collections

no duplicates TreeSet SortedSet ArrayDeque

Deque

FIFO & LIFO FIFO

Queue

LinkedList

PriorityQueue SortedMap TreeMap

Map collection: container of zero or more elements toString representation is not good add: arrays dont resize

HashMap

Collections are iterable The Problems with an Array

01- Introduction

Duplicates: unique elements when we add

03- Lists

Java Collections

LinkedList

part of JDK implementing data structures can be hard

ArrayList

Why Collections

Collection of distinct elements, no duplicates HashSet based upon HashMap, look for hashCode method

04- Sets TreeSet

Related Documents

02a
November 2019 16
Bmt-02a-tbh
November 2019 10
02a)integrativo 2007
November 2019 16
02a A Comunicacao Humana
November 2019 13

More Documents from ""