这是我的方法:
public Book getBook(String title, String author){
for (int i = 0; i < listOfBooks.size(); i++){
Book book = listOfBooks.get(i);
if (book.getTitle() == title && book.getAuthor() == author){
return book;
}
}
}
如果在 listOfBooks 中找不到该书,我应该返回什么?