From 85a774a7483a8ea0de1352b1b89b29fd5c306296 Mon Sep 17 00:00:00 2001 From: AnthonyyHL Date: Fri, 15 Dec 2023 23:49:21 -0500 Subject: [PATCH] Composite Design Pattern Implementation --- .idea/.gitignore | 3 + .idea/Java-Programming-MasterClass.iml | 9 ++ .idea/libraries/PackageChallenge.xml | 9 ++ .idea/libraries/jlfgr_1_0.xml | 9 ++ .idea/libraries/jlfgr_1_01.xml | 9 ++ .idea/libraries/jlfgr_1_02.xml | 9 ++ .idea/libraries/sqlite_jdbc_3_30_1.xml | 9 ++ .idea/misc.xml | 6 + .idea/modules.xml | 129 ++++++++++++++++++ .idea/vcs.xml | 6 + .../000_What-Are-Variables.iml | 11 ++ CODE/000_helloworld/000_helloworld.iml | 11 ++ ...ta-Types-The-Byte,-Short,-Int-And-Long.iml | 11 ++ ..._Primitive-Data-Types-Float-And-Double.iml | 11 ++ ..._Primitive-Data-Types-Char-And-Boolean.iml | 11 ++ .../004_Operators-In-Java.iml | 11 ++ ...e-On-Operators-And-Operator-Precedence.iml | 11 ++ ...-And-Finishing-Up-Primitive-Data-Types.iml | 11 ++ .../007_Keywords-And-Expressions.iml | 11 ++ ...ce-and-Intentation-(Code-Organization).iml | 11 ++ .../009_Code-Blocks-And-The-If-Then-Else.iml | 11 ++ .../010_Methods-In-Java.iml | 11 ++ .../011_On-Methods-And-A-Challenge.iml | 11 ++ .../012_Method-Overloading.iml | 11 ++ .../013_Speed-Converter.iml | 11 ++ .../020_method-overloading.iml | 11 ++ ...ch-statement-(plus-Challenge-Exercise).iml | 11 ++ ...or-Statement-(plus-Challenge-Exercise).iml | 11 ++ ...while-statements-(+Challenge-Exercise).iml | 11 ++ CODE/037_Classes/037_Classes.iml | 11 ++ ...Constructors-(plus-Challenge-Exercise).iml | 11 ++ CODE/039_Inheritance/039_Inheritance.iml | 11 ++ .../040_Inheritance-Challenge.iml | 11 ++ CODE/045_BillBurger/src/BillBurguerItem.java | 3 + CODE/045_BillBurger/src/Combo.java | 37 +++++ CODE/045_BillBurger/src/Hamburger.java | 4 +- CODE/045_BillBurger/src/HealthyBurger.java | 4 +- .../051_ArrayList-Challenge-MobileApp.iml | 11 ++ ..._AutoBoxing-unBoxing-Challenge-BankApp.iml | 11 ++ .../058_VisitedPlaces-ArrayList.iml | 11 ++ CODE/059_InnerClass/059_InnerClass.iml | 11 ++ .../060_TODO-List-ArrayList.iml | 11 ++ .../061_InnerClass-Challenge-Playlist.iml | 11 ++ .../062_AbstractClasses.iml | 11 ++ .../PackageChallenge/PackageChallenge.iml | 3 +- CODE/065_Packages/SeriesTest/SeriesTest.iml | 1 + Databases/Music/Music.iml | 1 - Databases/TestDB/TestDB.iml | 1 - Java-Programming-MasterClass.iml | 52 +++++++ Java-Programming-MasterClass1.iml | 11 ++ Java-Programming-MasterClass2.iml | 11 ++ Java-Programming-MasterClass3.iml | 11 ++ JavaFX/BorderPaneLayout/BorderPaneLayout.iml | 1 - JavaFX/CSSwithJavaFX/CSSwithJavaFX.iml | 1 - .../ComboBox-and-ChoiceBox.iml | 11 ++ JavaFX/Controls/Controls.iml | 10 -- .../EventsAndEventHandler.iml | 1 - JavaFX/Hbox/Hbox.iml | 1 - JavaFX/OtherLayouts/OtherLayouts.iml | 1 - .../RadioButton-and-CheckBox.iml | 11 ++ JavaFX/SampleTodoList/SampleTodoList.iml | 1 - JavaFX/ScenebuilderUI/ScenebuilderUI.iml | 1 - ...ner,-ColorPicker-&-DatePicker-Controls.iml | 11 ++ .../ThreadAndRunnable/ThreadAndRunnable.iml | 1 - JavaFX/TitledPane/TitledPane.iml | 11 ++ JavaFX/TodoListModified/TodoListModified.iml | 1 - JavaFX/UIThread/UIThread.iml | 1 - .../Echo-Client/Echo-Client1.iml | 11 ++ .../Echo-Server/Echo-Server1.iml | 11 ++ .../005_URI-Connections.iml | 1 - .../httpcomponents-client-4.5.3.iml | 11 ++ 71 files changed, 736 insertions(+), 29 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/Java-Programming-MasterClass.iml create mode 100644 .idea/libraries/PackageChallenge.xml create mode 100644 .idea/libraries/jlfgr_1_0.xml create mode 100644 .idea/libraries/jlfgr_1_01.xml create mode 100644 .idea/libraries/jlfgr_1_02.xml create mode 100644 .idea/libraries/sqlite_jdbc_3_30_1.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 CODE/000_What-Are-Variables/000_What-Are-Variables.iml create mode 100644 CODE/000_helloworld/000_helloworld.iml create mode 100644 CODE/001_Primitive-Data-Types-The-Byte,-Short,-Int-And-Long/001_Primitive-Data-Types-The-Byte,-Short,-Int-And-Long.iml create mode 100644 CODE/002_Primitive-Data-Types-Float-And-Double/002_Primitive-Data-Types-Float-And-Double.iml create mode 100644 CODE/003_Primitive-Data-Types-Char-And-Boolean/003_Primitive-Data-Types-Char-And-Boolean.iml create mode 100644 CODE/004_Operators-In-Java/004_Operators-In-Java.iml create mode 100644 CODE/005_More-On-Operators-And-Operator-Precedence/005_More-On-Operators-And-Operator-Precedence.iml create mode 100644 CODE/006_Strings-And-Finishing-Up-Primitive-Data-Types/006_Strings-And-Finishing-Up-Primitive-Data-Types.iml create mode 100644 CODE/007_Keywords-And-Expressions/007_Keywords-And-Expressions.iml create mode 100644 CODE/008_Statements,-Whitespace-and-Intentation-(Code-Organization)/008_Statements,-Whitespace-and-Intentation-(Code-Organization).iml create mode 100644 CODE/009_Code-Blocks-And-The-If-Then-Else/009_Code-Blocks-And-The-If-Then-Else.iml create mode 100644 CODE/010_Methods-In-Java/010_Methods-In-Java.iml create mode 100644 CODE/011_On-Methods-And-A-Challenge/011_On-Methods-And-A-Challenge.iml create mode 100644 CODE/012_Method-Overloading/012_Method-Overloading.iml create mode 100644 CODE/013_Speed-Converter/013_Speed-Converter.iml create mode 100644 CODE/020_method-overloading/020_method-overloading.iml create mode 100644 CODE/026_The-switch-statement-(plus-Challenge-Exercise)/026_The-switch-statement-(plus-Challenge-Exercise).iml create mode 100644 CODE/028_The-for-Statement-(plus-Challenge-Exercise)/028_The-for-Statement-(plus-Challenge-Exercise).iml create mode 100644 CODE/030_The-while-and-do-while-statements-(+Challenge-Exercise)/030_The-while-and-do-while-statements-(+Challenge-Exercise).iml create mode 100644 CODE/037_Classes/037_Classes.iml create mode 100644 CODE/038_Constructors-(plus-Challenge-Exercise)/038_Constructors-(plus-Challenge-Exercise).iml create mode 100644 CODE/039_Inheritance/039_Inheritance.iml create mode 100644 CODE/040_Inheritance-Challenge/040_Inheritance-Challenge.iml create mode 100644 CODE/045_BillBurger/src/BillBurguerItem.java create mode 100644 CODE/045_BillBurger/src/Combo.java create mode 100644 CODE/051_ArrayList-Challenge-MobileApp/051_ArrayList-Challenge-MobileApp.iml create mode 100644 CODE/053_AutoBoxing-unBoxing-Challenge-BankApp/053_AutoBoxing-unBoxing-Challenge-BankApp.iml create mode 100644 CODE/058_VisitedPlaces-ArrayList/058_VisitedPlaces-ArrayList.iml create mode 100644 CODE/059_InnerClass/059_InnerClass.iml create mode 100644 CODE/060_TODO-List-ArrayList/060_TODO-List-ArrayList.iml create mode 100644 CODE/061_InnerClass-Challenge-Playlist/061_InnerClass-Challenge-Playlist.iml create mode 100644 CODE/062_AbstractClasses/062_AbstractClasses.iml create mode 100644 Java-Programming-MasterClass.iml create mode 100644 Java-Programming-MasterClass1.iml create mode 100644 Java-Programming-MasterClass2.iml create mode 100644 Java-Programming-MasterClass3.iml create mode 100644 JavaFX/ComboBox-and-ChoiceBox/ComboBox-and-ChoiceBox.iml create mode 100644 JavaFX/RadioButton-and-CheckBox/RadioButton-and-CheckBox.iml create mode 100644 JavaFX/Slider,-Spinner,-ColorPicker-&-DatePicker-Controls/Slider,-Spinner,-ColorPicker-&-DatePicker-Controls.iml create mode 100644 JavaFX/TitledPane/TitledPane.iml create mode 100644 Networking/001_Client-&-Server/Echo-Client/Echo-Client1.iml create mode 100644 Networking/001_Client-&-Server/Echo-Server/Echo-Server1.iml create mode 100644 Networking/httpcomponents-client-4.5.3/httpcomponents-client-4.5.3.iml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/Java-Programming-MasterClass.iml b/.idea/Java-Programming-MasterClass.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/Java-Programming-MasterClass.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/PackageChallenge.xml b/.idea/libraries/PackageChallenge.xml new file mode 100644 index 0000000..98ffc33 --- /dev/null +++ b/.idea/libraries/PackageChallenge.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/jlfgr_1_0.xml b/.idea/libraries/jlfgr_1_0.xml new file mode 100644 index 0000000..6af31fa --- /dev/null +++ b/.idea/libraries/jlfgr_1_0.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/jlfgr_1_01.xml b/.idea/libraries/jlfgr_1_01.xml new file mode 100644 index 0000000..afa2913 --- /dev/null +++ b/.idea/libraries/jlfgr_1_01.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/jlfgr_1_02.xml b/.idea/libraries/jlfgr_1_02.xml new file mode 100644 index 0000000..450ba46 --- /dev/null +++ b/.idea/libraries/jlfgr_1_02.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/sqlite_jdbc_3_30_1.xml b/.idea/libraries/sqlite_jdbc_3_30_1.xml new file mode 100644 index 0000000..c232165 --- /dev/null +++ b/.idea/libraries/sqlite_jdbc_3_30_1.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..20f033c --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..b35031a --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/CODE/000_What-Are-Variables/000_What-Are-Variables.iml b/CODE/000_What-Are-Variables/000_What-Are-Variables.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/000_What-Are-Variables/000_What-Are-Variables.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/000_helloworld/000_helloworld.iml b/CODE/000_helloworld/000_helloworld.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/000_helloworld/000_helloworld.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/001_Primitive-Data-Types-The-Byte,-Short,-Int-And-Long/001_Primitive-Data-Types-The-Byte,-Short,-Int-And-Long.iml b/CODE/001_Primitive-Data-Types-The-Byte,-Short,-Int-And-Long/001_Primitive-Data-Types-The-Byte,-Short,-Int-And-Long.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/001_Primitive-Data-Types-The-Byte,-Short,-Int-And-Long/001_Primitive-Data-Types-The-Byte,-Short,-Int-And-Long.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/002_Primitive-Data-Types-Float-And-Double/002_Primitive-Data-Types-Float-And-Double.iml b/CODE/002_Primitive-Data-Types-Float-And-Double/002_Primitive-Data-Types-Float-And-Double.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/002_Primitive-Data-Types-Float-And-Double/002_Primitive-Data-Types-Float-And-Double.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/003_Primitive-Data-Types-Char-And-Boolean/003_Primitive-Data-Types-Char-And-Boolean.iml b/CODE/003_Primitive-Data-Types-Char-And-Boolean/003_Primitive-Data-Types-Char-And-Boolean.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/003_Primitive-Data-Types-Char-And-Boolean/003_Primitive-Data-Types-Char-And-Boolean.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/004_Operators-In-Java/004_Operators-In-Java.iml b/CODE/004_Operators-In-Java/004_Operators-In-Java.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/004_Operators-In-Java/004_Operators-In-Java.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/005_More-On-Operators-And-Operator-Precedence/005_More-On-Operators-And-Operator-Precedence.iml b/CODE/005_More-On-Operators-And-Operator-Precedence/005_More-On-Operators-And-Operator-Precedence.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/005_More-On-Operators-And-Operator-Precedence/005_More-On-Operators-And-Operator-Precedence.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/006_Strings-And-Finishing-Up-Primitive-Data-Types/006_Strings-And-Finishing-Up-Primitive-Data-Types.iml b/CODE/006_Strings-And-Finishing-Up-Primitive-Data-Types/006_Strings-And-Finishing-Up-Primitive-Data-Types.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/006_Strings-And-Finishing-Up-Primitive-Data-Types/006_Strings-And-Finishing-Up-Primitive-Data-Types.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/007_Keywords-And-Expressions/007_Keywords-And-Expressions.iml b/CODE/007_Keywords-And-Expressions/007_Keywords-And-Expressions.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/007_Keywords-And-Expressions/007_Keywords-And-Expressions.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/008_Statements,-Whitespace-and-Intentation-(Code-Organization)/008_Statements,-Whitespace-and-Intentation-(Code-Organization).iml b/CODE/008_Statements,-Whitespace-and-Intentation-(Code-Organization)/008_Statements,-Whitespace-and-Intentation-(Code-Organization).iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/008_Statements,-Whitespace-and-Intentation-(Code-Organization)/008_Statements,-Whitespace-and-Intentation-(Code-Organization).iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/009_Code-Blocks-And-The-If-Then-Else/009_Code-Blocks-And-The-If-Then-Else.iml b/CODE/009_Code-Blocks-And-The-If-Then-Else/009_Code-Blocks-And-The-If-Then-Else.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/009_Code-Blocks-And-The-If-Then-Else/009_Code-Blocks-And-The-If-Then-Else.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/010_Methods-In-Java/010_Methods-In-Java.iml b/CODE/010_Methods-In-Java/010_Methods-In-Java.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/010_Methods-In-Java/010_Methods-In-Java.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/011_On-Methods-And-A-Challenge/011_On-Methods-And-A-Challenge.iml b/CODE/011_On-Methods-And-A-Challenge/011_On-Methods-And-A-Challenge.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/011_On-Methods-And-A-Challenge/011_On-Methods-And-A-Challenge.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/012_Method-Overloading/012_Method-Overloading.iml b/CODE/012_Method-Overloading/012_Method-Overloading.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/012_Method-Overloading/012_Method-Overloading.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/013_Speed-Converter/013_Speed-Converter.iml b/CODE/013_Speed-Converter/013_Speed-Converter.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/013_Speed-Converter/013_Speed-Converter.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/020_method-overloading/020_method-overloading.iml b/CODE/020_method-overloading/020_method-overloading.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/020_method-overloading/020_method-overloading.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/026_The-switch-statement-(plus-Challenge-Exercise)/026_The-switch-statement-(plus-Challenge-Exercise).iml b/CODE/026_The-switch-statement-(plus-Challenge-Exercise)/026_The-switch-statement-(plus-Challenge-Exercise).iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/026_The-switch-statement-(plus-Challenge-Exercise)/026_The-switch-statement-(plus-Challenge-Exercise).iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/028_The-for-Statement-(plus-Challenge-Exercise)/028_The-for-Statement-(plus-Challenge-Exercise).iml b/CODE/028_The-for-Statement-(plus-Challenge-Exercise)/028_The-for-Statement-(plus-Challenge-Exercise).iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/028_The-for-Statement-(plus-Challenge-Exercise)/028_The-for-Statement-(plus-Challenge-Exercise).iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/030_The-while-and-do-while-statements-(+Challenge-Exercise)/030_The-while-and-do-while-statements-(+Challenge-Exercise).iml b/CODE/030_The-while-and-do-while-statements-(+Challenge-Exercise)/030_The-while-and-do-while-statements-(+Challenge-Exercise).iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/030_The-while-and-do-while-statements-(+Challenge-Exercise)/030_The-while-and-do-while-statements-(+Challenge-Exercise).iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/037_Classes/037_Classes.iml b/CODE/037_Classes/037_Classes.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/037_Classes/037_Classes.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/038_Constructors-(plus-Challenge-Exercise)/038_Constructors-(plus-Challenge-Exercise).iml b/CODE/038_Constructors-(plus-Challenge-Exercise)/038_Constructors-(plus-Challenge-Exercise).iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/038_Constructors-(plus-Challenge-Exercise)/038_Constructors-(plus-Challenge-Exercise).iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/039_Inheritance/039_Inheritance.iml b/CODE/039_Inheritance/039_Inheritance.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/039_Inheritance/039_Inheritance.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/040_Inheritance-Challenge/040_Inheritance-Challenge.iml b/CODE/040_Inheritance-Challenge/040_Inheritance-Challenge.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/040_Inheritance-Challenge/040_Inheritance-Challenge.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/045_BillBurger/src/BillBurguerItem.java b/CODE/045_BillBurger/src/BillBurguerItem.java new file mode 100644 index 0000000..842266c --- /dev/null +++ b/CODE/045_BillBurger/src/BillBurguerItem.java @@ -0,0 +1,3 @@ +public interface BillBurguerItem { + public double itemisedItem(); +} diff --git a/CODE/045_BillBurger/src/Combo.java b/CODE/045_BillBurger/src/Combo.java new file mode 100644 index 0000000..f6da7d4 --- /dev/null +++ b/CODE/045_BillBurger/src/Combo.java @@ -0,0 +1,37 @@ +import java.util.ArrayList; + +public class Combo implements BillBurguerItem { + + ArrayList comboItems = new ArrayList<>(); + String comboName; + public void addItem(BillBurguerItem item) { + comboItems.add(item); + } + + public void removeItem(BillBurguerItem item) { + comboItems.remove(item); + } + + public ArrayList getCombo() { + return comboItems; + } + public void setComboName(String comboName) { + this.comboName = comboName; + } + + @Override + public double itemisedItem() { + double subTotal = 0; + for (BillBurguerItem item : comboItems) { + subTotal += item.itemisedItem(); + } + System.out.println("additional " + + this.comboName + + ": " + + this.itemisedItem() + + " subtotal: " + + (double) Math.round(subTotal * 100)/100 + ); + return Math.round(subTotal * 100)/100; + } +} diff --git a/CODE/045_BillBurger/src/Hamburger.java b/CODE/045_BillBurger/src/Hamburger.java index b4f764d..b59739a 100644 --- a/CODE/045_BillBurger/src/Hamburger.java +++ b/CODE/045_BillBurger/src/Hamburger.java @@ -1,4 +1,4 @@ -public class Hamburger { +public class Hamburger implements BillBurguerItem { private String name; private String breadRollType; @@ -42,7 +42,7 @@ public void addAddition4(String name, double price) { this.addition4Price = price; } - public double itemisedHamburger() { + public double itemisedItem() { double subTotal = this.basePrice; System.out.println("Total price of " diff --git a/CODE/045_BillBurger/src/HealthyBurger.java b/CODE/045_BillBurger/src/HealthyBurger.java index 7df8dba..10a7b8e 100644 --- a/CODE/045_BillBurger/src/HealthyBurger.java +++ b/CODE/045_BillBurger/src/HealthyBurger.java @@ -20,8 +20,8 @@ public void addAddition6(String name, double price) { } @Override - public double itemisedHamburger() { - double subTotal = super.itemisedHamburger(); + public double itemisedItem() { + double subTotal = super.itemisedItem(); if (this.addition5Name != null) { subTotal += this.addition5Price; diff --git a/CODE/051_ArrayList-Challenge-MobileApp/051_ArrayList-Challenge-MobileApp.iml b/CODE/051_ArrayList-Challenge-MobileApp/051_ArrayList-Challenge-MobileApp.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/051_ArrayList-Challenge-MobileApp/051_ArrayList-Challenge-MobileApp.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/053_AutoBoxing-unBoxing-Challenge-BankApp/053_AutoBoxing-unBoxing-Challenge-BankApp.iml b/CODE/053_AutoBoxing-unBoxing-Challenge-BankApp/053_AutoBoxing-unBoxing-Challenge-BankApp.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/053_AutoBoxing-unBoxing-Challenge-BankApp/053_AutoBoxing-unBoxing-Challenge-BankApp.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/058_VisitedPlaces-ArrayList/058_VisitedPlaces-ArrayList.iml b/CODE/058_VisitedPlaces-ArrayList/058_VisitedPlaces-ArrayList.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/058_VisitedPlaces-ArrayList/058_VisitedPlaces-ArrayList.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/059_InnerClass/059_InnerClass.iml b/CODE/059_InnerClass/059_InnerClass.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/059_InnerClass/059_InnerClass.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/060_TODO-List-ArrayList/060_TODO-List-ArrayList.iml b/CODE/060_TODO-List-ArrayList/060_TODO-List-ArrayList.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/060_TODO-List-ArrayList/060_TODO-List-ArrayList.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/061_InnerClass-Challenge-Playlist/061_InnerClass-Challenge-Playlist.iml b/CODE/061_InnerClass-Challenge-Playlist/061_InnerClass-Challenge-Playlist.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/061_InnerClass-Challenge-Playlist/061_InnerClass-Challenge-Playlist.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/062_AbstractClasses/062_AbstractClasses.iml b/CODE/062_AbstractClasses/062_AbstractClasses.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CODE/062_AbstractClasses/062_AbstractClasses.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/CODE/065_Packages/PackageChallenge/PackageChallenge.iml b/CODE/065_Packages/PackageChallenge/PackageChallenge.iml index d5c0743..c90834f 100644 --- a/CODE/065_Packages/PackageChallenge/PackageChallenge.iml +++ b/CODE/065_Packages/PackageChallenge/PackageChallenge.iml @@ -8,5 +8,4 @@ - - + \ No newline at end of file diff --git a/CODE/065_Packages/SeriesTest/SeriesTest.iml b/CODE/065_Packages/SeriesTest/SeriesTest.iml index 24d0693..6bbf07b 100644 --- a/CODE/065_Packages/SeriesTest/SeriesTest.iml +++ b/CODE/065_Packages/SeriesTest/SeriesTest.iml @@ -8,5 +8,6 @@ + \ No newline at end of file diff --git a/Databases/Music/Music.iml b/Databases/Music/Music.iml index b1fa4ac..c90834f 100644 --- a/Databases/Music/Music.iml +++ b/Databases/Music/Music.iml @@ -7,6 +7,5 @@ - \ No newline at end of file diff --git a/Databases/TestDB/TestDB.iml b/Databases/TestDB/TestDB.iml index b1fa4ac..c90834f 100644 --- a/Databases/TestDB/TestDB.iml +++ b/Databases/TestDB/TestDB.iml @@ -7,6 +7,5 @@ - \ No newline at end of file diff --git a/Java-Programming-MasterClass.iml b/Java-Programming-MasterClass.iml new file mode 100644 index 0000000..a06a8c9 --- /dev/null +++ b/Java-Programming-MasterClass.iml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Java-Programming-MasterClass1.iml b/Java-Programming-MasterClass1.iml new file mode 100644 index 0000000..8b4bd88 --- /dev/null +++ b/Java-Programming-MasterClass1.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Java-Programming-MasterClass2.iml b/Java-Programming-MasterClass2.iml new file mode 100644 index 0000000..055f489 --- /dev/null +++ b/Java-Programming-MasterClass2.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Java-Programming-MasterClass3.iml b/Java-Programming-MasterClass3.iml new file mode 100644 index 0000000..b71e76e --- /dev/null +++ b/Java-Programming-MasterClass3.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/JavaFX/BorderPaneLayout/BorderPaneLayout.iml b/JavaFX/BorderPaneLayout/BorderPaneLayout.iml index cdf0df4..c90834f 100644 --- a/JavaFX/BorderPaneLayout/BorderPaneLayout.iml +++ b/JavaFX/BorderPaneLayout/BorderPaneLayout.iml @@ -7,6 +7,5 @@ - \ No newline at end of file diff --git a/JavaFX/CSSwithJavaFX/CSSwithJavaFX.iml b/JavaFX/CSSwithJavaFX/CSSwithJavaFX.iml index cdf0df4..c90834f 100644 --- a/JavaFX/CSSwithJavaFX/CSSwithJavaFX.iml +++ b/JavaFX/CSSwithJavaFX/CSSwithJavaFX.iml @@ -7,6 +7,5 @@ - \ No newline at end of file diff --git a/JavaFX/ComboBox-and-ChoiceBox/ComboBox-and-ChoiceBox.iml b/JavaFX/ComboBox-and-ChoiceBox/ComboBox-and-ChoiceBox.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/JavaFX/ComboBox-and-ChoiceBox/ComboBox-and-ChoiceBox.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/JavaFX/Controls/Controls.iml b/JavaFX/Controls/Controls.iml index 72fc42a..c90834f 100644 --- a/JavaFX/Controls/Controls.iml +++ b/JavaFX/Controls/Controls.iml @@ -7,15 +7,5 @@ - - - - - - - - - - \ No newline at end of file diff --git a/JavaFX/EventsAndEventHandler/EventsAndEventHandler.iml b/JavaFX/EventsAndEventHandler/EventsAndEventHandler.iml index cdf0df4..c90834f 100644 --- a/JavaFX/EventsAndEventHandler/EventsAndEventHandler.iml +++ b/JavaFX/EventsAndEventHandler/EventsAndEventHandler.iml @@ -7,6 +7,5 @@ - \ No newline at end of file diff --git a/JavaFX/Hbox/Hbox.iml b/JavaFX/Hbox/Hbox.iml index cdf0df4..c90834f 100644 --- a/JavaFX/Hbox/Hbox.iml +++ b/JavaFX/Hbox/Hbox.iml @@ -7,6 +7,5 @@ - \ No newline at end of file diff --git a/JavaFX/OtherLayouts/OtherLayouts.iml b/JavaFX/OtherLayouts/OtherLayouts.iml index cdf0df4..c90834f 100644 --- a/JavaFX/OtherLayouts/OtherLayouts.iml +++ b/JavaFX/OtherLayouts/OtherLayouts.iml @@ -7,6 +7,5 @@ - \ No newline at end of file diff --git a/JavaFX/RadioButton-and-CheckBox/RadioButton-and-CheckBox.iml b/JavaFX/RadioButton-and-CheckBox/RadioButton-and-CheckBox.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/JavaFX/RadioButton-and-CheckBox/RadioButton-and-CheckBox.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/JavaFX/SampleTodoList/SampleTodoList.iml b/JavaFX/SampleTodoList/SampleTodoList.iml index cdf0df4..c90834f 100644 --- a/JavaFX/SampleTodoList/SampleTodoList.iml +++ b/JavaFX/SampleTodoList/SampleTodoList.iml @@ -7,6 +7,5 @@ - \ No newline at end of file diff --git a/JavaFX/ScenebuilderUI/ScenebuilderUI.iml b/JavaFX/ScenebuilderUI/ScenebuilderUI.iml index cdf0df4..c90834f 100644 --- a/JavaFX/ScenebuilderUI/ScenebuilderUI.iml +++ b/JavaFX/ScenebuilderUI/ScenebuilderUI.iml @@ -7,6 +7,5 @@ - \ No newline at end of file diff --git a/JavaFX/Slider,-Spinner,-ColorPicker-&-DatePicker-Controls/Slider,-Spinner,-ColorPicker-&-DatePicker-Controls.iml b/JavaFX/Slider,-Spinner,-ColorPicker-&-DatePicker-Controls/Slider,-Spinner,-ColorPicker-&-DatePicker-Controls.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/JavaFX/Slider,-Spinner,-ColorPicker-&-DatePicker-Controls/Slider,-Spinner,-ColorPicker-&-DatePicker-Controls.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/JavaFX/ThreadAndRunnable/ThreadAndRunnable.iml b/JavaFX/ThreadAndRunnable/ThreadAndRunnable.iml index cdf0df4..c90834f 100644 --- a/JavaFX/ThreadAndRunnable/ThreadAndRunnable.iml +++ b/JavaFX/ThreadAndRunnable/ThreadAndRunnable.iml @@ -7,6 +7,5 @@ - \ No newline at end of file diff --git a/JavaFX/TitledPane/TitledPane.iml b/JavaFX/TitledPane/TitledPane.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/JavaFX/TitledPane/TitledPane.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/JavaFX/TodoListModified/TodoListModified.iml b/JavaFX/TodoListModified/TodoListModified.iml index cdf0df4..c90834f 100644 --- a/JavaFX/TodoListModified/TodoListModified.iml +++ b/JavaFX/TodoListModified/TodoListModified.iml @@ -7,6 +7,5 @@ - \ No newline at end of file diff --git a/JavaFX/UIThread/UIThread.iml b/JavaFX/UIThread/UIThread.iml index cdf0df4..c90834f 100644 --- a/JavaFX/UIThread/UIThread.iml +++ b/JavaFX/UIThread/UIThread.iml @@ -7,6 +7,5 @@ - \ No newline at end of file diff --git a/Networking/001_Client-&-Server/Echo-Client/Echo-Client1.iml b/Networking/001_Client-&-Server/Echo-Client/Echo-Client1.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/Networking/001_Client-&-Server/Echo-Client/Echo-Client1.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Networking/001_Client-&-Server/Echo-Server/Echo-Server1.iml b/Networking/001_Client-&-Server/Echo-Server/Echo-Server1.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/Networking/001_Client-&-Server/Echo-Server/Echo-Server1.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Networking/005_URI-Connections/005_URI-Connections.iml b/Networking/005_URI-Connections/005_URI-Connections.iml index 09a5534..c90834f 100644 --- a/Networking/005_URI-Connections/005_URI-Connections.iml +++ b/Networking/005_URI-Connections/005_URI-Connections.iml @@ -7,6 +7,5 @@ - \ No newline at end of file diff --git a/Networking/httpcomponents-client-4.5.3/httpcomponents-client-4.5.3.iml b/Networking/httpcomponents-client-4.5.3/httpcomponents-client-4.5.3.iml new file mode 100644 index 0000000..0bb0a03 --- /dev/null +++ b/Networking/httpcomponents-client-4.5.3/httpcomponents-client-4.5.3.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file