MultPractice is #2 from the from the 2017 AP Computer Science A Free Response problems.

https://secure-media.collegeboard.org/ap/pdf/ap-computer-science-a-frq-2017.pdf

MultPractice class

public class MultPractice implements StudyPractice
{
    private final int first;
    private int second;

    public MultPractice(int f, int s)
    {
        first = f;
        second = s;
    }

    public String getProblem()
    {
        return first + " TIMES " + second;
    }

    public void nextProblem()
    {
        second++;
    }
}

See Class writing order for a technique to respond to AP CS FR that request an entire class.

2017 AP CS Exam Free Response Solutions

Help & comments

Get help from AP CS Tutor Brandon Horn

Comment on MultPractice