Description
AP Computer Science A Test Review and Practice: Free Response Question
A full, unique free response question using Java in the style of the AP Computer Science exam.
Students complete three methods from a library management system. The problem presents two existing classes: Library and Book. Students complete three new methods as a part of the Library class:
- public void addBook(Book newBook)
- public ArrayList<String> findBooksByAuthor(String author)
- public Book recommendBook(int targetYear)
The problem allows students to practice using ArrayLists, manipulating Strings, writing loops and conditional statements, and working with an existing class structure.
Full solutions implemented in Java are provided.
AP Computer Science A: Free Response Question in Java for AP® Test Review
Highlights
Description
AP Computer Science A Test Review and Practice: Free Response Question
A full, unique free response question using Java in the style of the AP Computer Science exam.
Students complete three methods from a library management system. The problem presents two existing classes: Library and Book. Students complete three new methods as a part of the Library class:
- public void addBook(Book newBook)
- public ArrayList<String> findBooksByAuthor(String author)
- public Book recommendBook(int targetYear)
The problem allows students to practice using ArrayLists, manipulating Strings, writing loops and conditional statements, and working with an existing class structure.
Full solutions implemented in Java are provided.




