AP CSA Java Practice
Free AP Computer Science A Java practice — worldwide
Maker216 hosts an original, English-language Java drill bank for AP CSA students and teachers. Practice methods on arrays, ArrayList, 2D arrays, classes, searching, sorting, and recursion tracing — then click Go to compile with OpenJDK and run hidden tests. Aligned with the College Board Course and Exam Description (Fall 2025; exam year 2026). No sign-up required.
In-person robotics and coding workshops for ages 5–18 are based in Çekmeköy, Istanbul — see our programs (Turkish).
AP CSA units
Warmup-1
Unit 1 — Using Objects & Methods
Basic methods with int and boolean.
Objects-1
Unit 1 — Math & String objects
Math class and String methods (CED Unit 1).
String-1
Unit 1 — Using Objects & Methods
Core String methods without loops.
AP-1
Unit 1 — Using Objects & Methods
Mixed practice: primitives, Strings, and arrays.
Logic-1
Unit 2 — Selection & Iteration
Boolean expressions: if, &&, ||, !
Logic-2
Unit 2 — Selection & Iteration
Multi-branch selection and compound conditions.
While-1
Unit 2 — While loops
While-loop algorithms (digits, GCD, simulation).
Warmup-2
Unit 2 — Selection & Iteration
Loops with Strings and arrays.
String-2
Unit 2 — Selection & Iteration
String algorithms with a single loop.
String-3
Unit 2 — Selection & Iteration
Harder String problems (nested loops).
Class-1
Unit 3 — Class Creation
Design warm-up: methods that model object behavior.
Classes-2
Unit 3 — Class Creation
More class-design style method problems.
Array-1
EasyUnit 4 — Data Collections (arrays)
Array basics without loops.
Array-2
MediumUnit 4 — Data Collections (arrays)
Single-loop array algorithms.
Array-3
HardUnit 4 — Data Collections (arrays)
Nested loops and harder array logic.
List-1
Unit 4 — ArrayList
ArrayList-style operations on int arrays.
ArrayList-2
Unit 4 — ArrayList methods
get, set, add, remove, indexOf — array modeling.
2D Array-1
Unit 4 — 2D arrays
Traverse and aggregate 2D arrays.
Search & Sort-1
Unit 4 — Searching & sorting
Linear search, order checks, and sorting concepts.
Sort-2
Unit 4 — Sorting algorithms
Selection, insertion, bubble, and merge patterns.
Data Sets-1
Unit 4 — Data sets
Analyze numeric data sets (scores, measurements).
Text Data-1
Unit 4 — Text files & data sets
Parse lines and CSV-style text (file I/O concepts).
Recursion-1
Unit 4 — Recursion (tracing)
Basic recursive methods (exam focus: trace calls).
Recursion-2
Unit 4 — Recursion (tracing)
Recursive search and classic patterns.
