☑Kizspy.me
+getTitleById(id: int): String
+getBookListByAuthor(author: String):
BookList
does not exist, return "N/A".
getBookListByAuthor(author:String):
BookList return a list of books by the
specified author (case insensitive)
found, otherwise return null.
if
Hints: to declare the BookList class, you can use the following statement:
public class BookList extends ArrayList<Book> { //.....}
6 of 7
Paper No: 1
The program output might look something like this (using the BookList class):
The book list has been added:
The book list has been added:
2, Cosmos, Sagan
2, Cosmos, Sagan
+100%
Zoom
The book list has been added:
2, Cosmos, Sagan
Close