diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/cart.txt b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/cart.txt new file mode 100644 index 0000000..a8d5939 --- /dev/null +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/cart.txt @@ -0,0 +1,4 @@ +The Earthsea Cycle +The Chronicles of Narnia +The Mistborn Series +The Earthsea Cycle diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/ShopController.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/ShopController.java index 27c9a5b..364b644 100644 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/ShopController.java +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/ShopController.java @@ -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); diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/Account.class b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/Account.class index f227097..113f497 100644 Binary files a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/Account.class and b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/Account.class differ diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/Item.class b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/Item.class index 5a41841..0df4e38 100644 Binary files a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/Item.class and b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/Item.class differ diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/ShopController.class b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/ShopController.class index 203cb87..9c10fa4 100644 Binary files a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/ShopController.class and b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/ShopController.class differ diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/module-info.class b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/module-info.class index 9818982..e4a6fa4 100644 Binary files a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/module-info.class and b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/module-info.class differ