explaingit

clfurman/apcsa2026solutions

0JavaAudience · generalComplexity · 1/5ActiveSetup · easy

TLDR

Personal Java solutions to the 2026 AP Computer Science A free-response questions, with one runner or tester class per problem.

Mindmap

mindmap
  root((APCSA2026Solutions))
    Inputs
      AP CSA FRQ prompts
    Outputs
      Java solution classes
      Runner output
    Use Cases
      Compare answers after the exam
      Study FRQ patterns
      Practice Java basics
    Tech Stack
      Java

Things people build with this

USE CASE 1

Compare your own AP CSA 2026 FRQ answers against another student's solutions

USE CASE 2

Study the standard solution-plus-runner class pattern used in AP CSA

USE CASE 3

Practice compiling and running small Java programs from the command line

USE CASE 4

Use the runner classes as a template for testing your own AP CSA solutions

Tech stack

Java

Getting it running

Difficulty · easy Time to first run · 5min

Needs a Java compiler installed and the FRQ prompts found elsewhere since the repo only ships the answers.

In plain English

This repository is a small set of Java files that the author has posted as their own solutions to the 2026 free-response questions, known as FRQs, from the AP Computer Science A exam. AP Computer Science A is a high school course in the United States that teaches programming in Java and ends with a standardised exam, and the FRQ section asks students to write Java methods to solve a few short problems described in plain English. The repository description simply says My solutions to the AP CSA 2026 FRQs. The README is very short. It does not explain what the questions were or how the solutions work. Instead it just maps each of the four FRQs to the Java files in the repository. For FRQ 1, the reader is told to open Account.java and AccountTester.java, with a note that the isAvailable method will prompt for true or false input to simulate its behaviour. For FRQ 2, the relevant files are Bottle.java and BottleRunner.java. For FRQ 3, it is CourseRecord.java, Attendance.java, and AttendanceRunner.java. For FRQ 4, the files are Space.java, GameBoard.java, and GameRunner.java. The pattern that comes through from the file names is the standard AP CSA layout. Each problem has one or more classes that hold the actual solution logic, and a separate runner or tester class that creates an example object and exercises the methods so a student can see them work. To run any of them, a reader would compile the Java files together and run the matching runner or tester class. The repository has no stars and no topics, and the README does not list a license or any further instructions. It reads as a personal study upload by the author rather than a polished project. Anyone looking for the question prompts themselves would need to find them elsewhere, since only the answer code is here.

Copy-paste prompts

Prompt 1
Walk through Account.java and AccountTester.java and explain how the isAvailable method is tested
Prompt 2
Compile every file in APCSA2026Solutions and run each FRQ runner one after another
Prompt 3
Refactor Bottle.java to add JUnit tests instead of relying on BottleRunner output
Prompt 4
Compare CourseRecord.java and Attendance.java to the official AP CSA 2026 scoring guide
Prompt 5
Rewrite GameBoard.java so the board size is configurable from GameRunner
Open on GitHub → Explain another repo

Generated 2026-05-22 · Model: sonnet-4-6 · Verify against the repo before relying on details.