Unit 05

Grids

Edit a photograph pixel by pixel, then build a playable 2048: a row of rows, visited cell by cell, and the moves that rewrite it.

Part of AP Unit 4 · 30–40% of the exam3 of its 17 topics

Computer Science in Java · members' unit

Grids 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 · 13 min read

  1. What you will build
  2. 4.11 · Creating and Indexing 2D Arrays
  3. 4.12 · 2D array traversals
  4. 4.13 · Standard 2D Array Algorithms
  5. Project 5-A · PicLab
  6. Project 5-B · 2048

11 quick checksannotated specimenarray explorercode exercisesdebugging drills

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.

Or buy it

Reading on your own, with no class? The course can be yours.

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