Java Collections

Lists, sets, queues and maps, and choosing between their implementations.

2 subjects · 8 topics · 1 cheatsheet

Subjects covering this category

2 subjects
  • Subject · Intermediate to Advanced

    Holding data in the right Java collection, and transforming it without writing a loop.

    • Collections
    • Pipelines
    9 topics · 78 cardsnot started
  • Subject · Beginner to Advanced

    Writing Java that compiles, runs, and models a problem with objects.

    • The Language
    • Objects
    • When Things Go Wrong
    15 topics · 131 cardsnot started

Cheatsheets

1 cheatsheet
  • Cheatsheet · Java Collections and Streams

    Every everyday Java collection on one page: what each one is for, what it costs, and how to choose.

    11 entries here

In Java Collections itself

8 topics
  • Java Collections and Streams

    The Java Collections Framework: List, Set and Queue, what each promises, and which type to declare a variable with.

    Intermediate to Advanced8 cards · 5 qnot started

  • Java Collections and Streams

    ArrayList vs LinkedList: two lists with the same methods and opposite costs, how an ArrayList grows, and removing while iterating.

    Intermediate to Advanced8 cards · 6 qnot started

  • Java Collections and Streams

    Sets and queues: collections that decide what counts as a duplicate and what comes out next, and which class to use.

    Intermediate to Advanced8 cards · 5 qnot started

  • Java Collections and Streams

    How a HashMap works: hashing to a bucket, collisions, resizing, the three map classes, and null keys.

    Intermediate to Advanced9 cards · 5 qnot started

  • Java

    Java arrays: a fixed run of values under one name, creating and filling one, zero-based indexes, and why an array cannot grow.

    Beginner to Intermediate8 cards · 5 qnot started

  • Java

    Java equals, hashCode and toString: the defaults every object inherits, the contract between equals and hashCode, and how hash maps lose keys.

    Intermediate to Advanced8 cards · 6 qnot started

  • Java Collections and Streams

    Sorting your own types in Java: Comparable for the natural order, Comparator for the rest, and the two ways a comparator goes wrong.

    Intermediate to Advanced9 cards · 5 qnot started

  • Java Collections and Streams

    Java streams: pipelines over a source, lazy evaluation, map and flatMap, collectors, single use, and when parallel streams pay.

    Intermediate to Advanced10 cards · 6 qnot started