public void updateBookByTitle(final String oldtitle, final String newTitle, final String author, final String genre,
            final int quantity, final double price) {

        for (Book book : bookList.getBookList()) {
            if (oldtitle.equals(book.getTitle())) {

                book.setTitle(newTitle);
                book.setAuthor(author);
                book.setGenre(genre);
                book.setQuantity(quantity);
                book.setPrice(price);
            }
        }

        writeBookList();
    }