Unit 04

Data Collections

Build four things that each hold thousands of values at once — a dataset you parse, a photograph you edit pixel by pixel, a playable 2048 and a sorting bench — and learn the arrays, ArrayLists, 2D arrays and algorithms underneath all four.

30–40% of the AP Exam~50–52 CED periods~25–29 blocks here17 topics

Computer Science in Java · members' unit

Data Collections is behind a locked door

Units in Computer Science in Java are for people taking the course. Getting in takes a link or a key — signing in on its own doesn't do it.

What's in this unit · 47 min read

  1. What you will build
  2. 4.1 · Privacy, bias, and data quality
  3. 4.2 · Working with Data Sets
  4. 4.3 · Creating and Indexing Arrays
  5. 4.4 · Array traversals
  6. 4.5 · Standard Array Algorithms
  7. 4.6 · Reading Text Files
  8. 4.7 · Wrapper classes
  9. 4.8 · ArrayList methods
  10. 4.9 · ArrayList traversals
  11. 4.10 · Standard ArrayList Algorithms
  12. Project 4-A · DataLab
  13. 4.11 · Creating and Indexing 2D Arrays
  14. 4.12 · 2D array traversals
  15. 4.13 · Standard 2D Array Algorithms
  16. Project 4-B · PicLab
  17. Project 4-C · 2048
  18. 4.14 · Searching algorithms
  19. 4.15 · Sorting algorithms
  20. Project 4-D · Sort
  21. 4.16 · Recursion
  22. 4.17 · Recursive Algorithms on Collections

65 quick checksannotated specimenvideoArrayList sandboxloop tracercall stack viewer+3 more

1 Sign in

With your school Google account. This is how your work reaches the gradebook — it doesn't open the unit by itself.

2 Get in

Open the class link your teacher posted — that's the usual way, and it enrolls you on the spot. Or paste an access key if you were handed one.

A key unlocks this browser and keeps your progress here; signing in keeps it with you across devices. Either way the key itself is only ever checked as a hash. Manage all of this on your account, read what signing in stores, or go back to Computer Science in Java.

Sources

  • College Board — AP Computer Science A Course and Exam Description, Effective Fall 2025