AP CS A · Java

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).

Sets

AP CSA units

Warmup-1

Unit 1 — Using Objects & Methods

Basic methods with int and boolean.

15 problems

Objects-1

Unit 1 — Math & String objects

Math class and String methods (CED Unit 1).

12 problems

String-1

Unit 1 — Using Objects & Methods

Core String methods without loops.

15 problems

AP-1

Unit 1 — Using Objects & Methods

Mixed practice: primitives, Strings, and arrays.

15 problems

Logic-1

Unit 2 — Selection & Iteration

Boolean expressions: if, &&, ||, !

15 problems

Logic-2

Unit 2 — Selection & Iteration

Multi-branch selection and compound conditions.

12 problems

While-1

Unit 2 — While loops

While-loop algorithms (digits, GCD, simulation).

12 problems

Warmup-2

Unit 2 — Selection & Iteration

Loops with Strings and arrays.

12 problems

String-2

Unit 2 — Selection & Iteration

String algorithms with a single loop.

12 problems

String-3

Unit 2 — Selection & Iteration

Harder String problems (nested loops).

12 problems

Class-1

Unit 3 — Class Creation

Design warm-up: methods that model object behavior.

12 problems

Classes-2

Unit 3 — Class Creation

More class-design style method problems.

9 problems

Array-1

Easy

Unit 4 — Data Collections (arrays)

Array basics without loops.

30 problems

Array-2

Medium

Unit 4 — Data Collections (arrays)

Single-loop array algorithms.

24 problems

Array-3

Hard

Unit 4 — Data Collections (arrays)

Nested loops and harder array logic.

18 problems

List-1

Unit 4 — ArrayList

ArrayList-style operations on int arrays.

12 problems

ArrayList-2

Unit 4 — ArrayList methods

get, set, add, remove, indexOf — array modeling.

12 problems

2D Array-1

Unit 4 — 2D arrays

Traverse and aggregate 2D arrays.

12 problems

Search & Sort-1

Unit 4 — Searching & sorting

Linear search, order checks, and sorting concepts.

12 problems

Sort-2

Unit 4 — Sorting algorithms

Selection, insertion, bubble, and merge patterns.

12 problems

Data Sets-1

Unit 4 — Data sets

Analyze numeric data sets (scores, measurements).

12 problems

Text Data-1

Unit 4 — Text files & data sets

Parse lines and CSV-style text (file I/O concepts).

12 problems

Recursion-1

Unit 4 — Recursion (tracing)

Basic recursive methods (exam focus: trace calls).

12 problems

Recursion-2

Unit 4 — Recursion (tracing)

Recursive search and classic patterns.

12 problems