help me dear lord
This commit is contained in:
parent
df8cfc41ed
commit
aeae2a7bfb
6 changed files with 4 additions and 5 deletions
4
Code/ost/JAVA-FX-PROJECT/_javafx_website_task/cart.txt
Normal file
4
Code/ost/JAVA-FX-PROJECT/_javafx_website_task/cart.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
The Earthsea Cycle
|
||||
The Chronicles of Narnia
|
||||
The Mistborn Series
|
||||
The Earthsea Cycle
|
|
@ -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);
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue