help me dear lord

This commit is contained in:
Sage The DM 2025-01-13 18:23:25 +01:00
parent df8cfc41ed
commit aeae2a7bfb
6 changed files with 4 additions and 5 deletions

View file

@ -0,0 +1,4 @@
The Earthsea Cycle
The Chronicles of Narnia
The Mistborn Series
The Earthsea Cycle

View file

@ -88,11 +88,6 @@ public class ShopController {
addToCart("The Stormlight Archive");
}
/**
* Adds the specified item to the cart by appending it to the cart file.
*
* @param bookTitle the title of the book to add to the cart
*/
private void addToCart(String bookTitle) {
try (BufferedWriter writer = new BufferedWriter(new FileWriter(CART_FILE, true))) {
writer.write(bookTitle);