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.
Every assignment filed under this unit, and where each one stands with your classes. The whole console →
- The last indexchecking
- The disappearing elementschecking
- Could we, should wechecking
- What the data can answerchecking
- What an array starts aschecking
- What the enhanced for can touchchecking
- Reading the accumulatorchecking
- Opening a filechecking
- Text into numberschecking
- Replace, or insertchecking
- Removing safelychecking
- Two lists at oncechecking
- Row, then columnchecking
- Across, or downchecking
- One loop, or twochecking
- Finding itchecking
- Swap, or slidechecking
- On the way outchecking
- Halving and mergingchecking
- FRQ · Last threechecking
- FRQ · Streakchecking
- FRQ · Known sumchecking
- FRQ · Diagonalschecking
- FRQ · Heaviest rowchecking
- FRQ · Last indexchecking
- FRQ · Insert nextchecking
- FRQ · Digit sumchecking
- FRQ · Sum fromchecking
- FRQ · Binary searchchecking
- FRQ · Remove shortchecking
- FRQ · Count startingchecking
- FRQ · Sorted insertchecking
- FRQ · Column sumschecking
- FRQ · Row ofchecking
- FRQ · Select intochecking
- FRQ · File totalchecking
- FRQ · Mergechecking
- FRQ · Neighborschecking
- FRQ · Averagechecking
- FRQ · Digitschecking
- FRQ · Tripchecking
- FRQ · Crosswordchecking
- FRQ · StringCoderchecking
- FRQ · StringFormatterchecking
- FRQ · BatteryChargerchecking
- FRQ · DiverseArraychecking
- FRQ · SparseArraychecking
- FRQ · MasterOrderchecking
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
- What you will build
- 4.1 · Privacy, bias, and data quality
- 4.2 · Working with Data Sets
- 4.3 · Creating and Indexing Arrays
- 4.4 · Array traversals
- 4.5 · Standard Array Algorithms
- 4.6 · Reading Text Files
- 4.7 · Wrapper classes
- 4.8 · ArrayList methods
- 4.9 · ArrayList traversals
- 4.10 · Standard ArrayList Algorithms
- Project 4-A · DataLab
- 4.11 · Creating and Indexing 2D Arrays
- 4.12 · 2D array traversals
- 4.13 · Standard 2D Array Algorithms
- Project 4-B · PicLab
- Project 4-C · 2048
- 4.14 · Searching algorithms
- 4.15 · Sorting algorithms
- Project 4-D · Sort
- 4.16 · Recursion
- 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.
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