What is wrong with the following code? Why? How can you fix it?
// Remove all the books which contain the given keyword in book title public void removeAllBooks(String keyword) {
for(Book b: booksList) {
if (b.getTitle().indexOf(keyword)>=0) { booksList.remove(b);
}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here