From 0919005cb2b9020df9703dde8c117cb61a7d7f0d Mon Sep 17 00:00:00 2001 From: sageTheDM Date: Mon, 16 Dec 2024 20:32:46 +0100 Subject: [PATCH] AHHHHHHHHHH COMMITED TO GITHUB INSTEAD OF FORGEJO FOR WEEKS --- Code/Steiner/JavaOldCode/src/Testcode.java | 2 +- .../dynamicCasting/.vscode/settings.json | 7 + Code/Steiner/dynamicCasting/README.md | 18 + Code/Steiner/dynamicCasting/bin/App.class | Bin 0 -> 1825 bytes Code/Steiner/dynamicCasting/bin/Article.class | Bin 0 -> 509 bytes Code/Steiner/dynamicCasting/bin/Audio.class | Bin 0 -> 427 bytes Code/Steiner/dynamicCasting/bin/Book.class | Bin 0 -> 1284 bytes Code/Steiner/dynamicCasting/bin/CD.class | Bin 0 -> 2098 bytes Code/Steiner/dynamicCasting/bin/Camera.class | Bin 0 -> 1206 bytes Code/Steiner/dynamicCasting/bin/MP3.class | Bin 0 -> 1352 bytes Code/Steiner/dynamicCasting/src/App.java | 21 + Code/Steiner/dynamicCasting/src/Article.java | 16 + Code/Steiner/dynamicCasting/src/Audio.java | 11 + Code/Steiner/dynamicCasting/src/Book.java | 16 + Code/Steiner/dynamicCasting/src/CD.java | 27 ++ Code/Steiner/dynamicCasting/src/Camera.java | 14 + Code/Steiner/dynamicCasting/src/MP3.java | 15 + .../gameWithCards/.vscode/settings.json | 7 + Code/Steiner/gameWithCards/README.md | 18 + Code/Steiner/gameWithCards/bin/App.class | Bin 0 -> 431 bytes Code/Steiner/gameWithCards/bin/Board.class | Bin 0 -> 1835 bytes Code/Steiner/gameWithCards/bin/Card.class | Bin 0 -> 606 bytes Code/Steiner/gameWithCards/bin/Field.class | Bin 0 -> 546 bytes Code/Steiner/gameWithCards/bin/Game.class | Bin 0 -> 647 bytes Code/Steiner/gameWithCards/bin/Magic.class | Bin 0 -> 533 bytes Code/Steiner/gameWithCards/bin/Unit.class | Bin 0 -> 433 bytes Code/Steiner/gameWithCards/src/App.java | 6 + Code/Steiner/gameWithCards/src/Board.java | 43 ++ Code/Steiner/gameWithCards/src/Card.java | 19 + Code/Steiner/gameWithCards/src/Field.java | 19 + Code/Steiner/gameWithCards/src/Game.java | 16 + Code/Steiner/gameWithCards/src/Magic.java | 15 + Code/Steiner/gameWithCards/src/Unit.java | 17 + .../interfacesTheorie/.vscode/settings.json | 7 + Code/Steiner/interfacesTheorie/README.md | 18 + Code/Steiner/interfacesTheorie/bin/App.class | Bin 0 -> 540 bytes .../interfacesTheorie/bin/ITierBewegen.class | Bin 0 -> 129 bytes .../bin/ITierNahrungsaufnahme.class | Bin 0 -> 145 bytes .../interfacesTheorie/bin/Kuckuck.class | Bin 0 -> 691 bytes .../Steiner/interfacesTheorie/bin/Vogel.class | Bin 0 -> 310 bytes Code/Steiner/interfacesTheorie/src/App.java | 8 + .../interfacesTheorie/src/ITierBewegen.java | 3 + .../src/ITierNahrungsaufnahme.java | 4 + .../interfacesTheorie/src/Kuckuck.java | 17 + Code/Steiner/interfacesTheorie/src/Vogel.java | 7 + .../pruefung04-12-24(2)/.vscode/settings.json | 7 + Code/Steiner/pruefung04-12-24(2)/README.md | 18 + .../Steiner/pruefung04-12-24(2)/bin/App.class | Bin 0 -> 1603 bytes .../bin/LabeledRectangle.class | Bin 0 -> 1103 bytes .../Steiner/pruefung04-12-24(2)/src/App.class | Bin 0 -> 1423 bytes Code/Steiner/pruefung04-12-24(2)/src/App.java | 27 ++ .../src/LabeledRectangle.class | Bin 0 -> 961 bytes .../src/LabeledRectangle.java | 18 + .../pruefung04-12-24/.vscode/settings.json | 7 + Code/Steiner/pruefung04-12-24/README.md | 18 + Code/Steiner/pruefung04-12-24/bin/App.class | Bin 0 -> 949 bytes .../bin/DatenanalysePlugin.class | Bin 0 -> 1822 bytes .../Steiner/pruefung04-12-24/bin/Plugin.class | Bin 0 -> 1383 bytes .../pruefung04-12-24/bin/UIPlugin.class | Bin 0 -> 1295 bytes Code/Steiner/pruefung04-12-24/src/App.class | Bin 0 -> 780 bytes Code/Steiner/pruefung04-12-24/src/App.java | 17 + .../src/DatenanalysePlugin.class | Bin 0 -> 1588 bytes .../src/DatenanalysePlugin.java | 24 + .../Steiner/pruefung04-12-24/src/Plugin.class | Bin 0 -> 1234 bytes Code/Steiner/pruefung04-12-24/src/Plugin.java | 31 ++ .../pruefung04-12-24/src/UIPlugin.class | Bin 0 -> 1145 bytes .../pruefung04-12-24/src/UIPlugin.java | 20 + .../.vscode/settings.json | 7 + .../samsung(Interfaces-task)/README.md | 18 + .../samsung(Interfaces-task)/bin/App.class | Bin 0 -> 1585 bytes .../bin/GalaxyJ3.class | Bin 0 -> 838 bytes .../bin/GalaxyS5.class | Bin 0 -> 927 bytes .../bin/ITelefon.class | Bin 0 -> 160 bytes .../bin/Samsung.class | Bin 0 -> 395 bytes .../samsung(Interfaces-task)/src/App.java | 24 + .../src/GalaxyJ3.java | 22 + .../src/GalaxyS5.java | 23 + .../src/ITelefon.java | 7 + .../samsung(Interfaces-task)/src/Samsung.java | 9 + .../_javafx_website_task/pom.xml | 51 +++ .../src/main/java/com/example/App.java | 38 ++ .../java/com/example/PrimaryController.java | 77 ++++ .../java/com/example/SecondaryController.java | 12 + .../src/main/java/module-info.java | 7 + .../src/main/resources/com/example/cart.fxml | 100 +++++ .../main/resources/com/example/checkOut.fxml | 172 +++++++ .../main/resources/com/example/icons/bill.png | Bin 0 -> 96238 bytes .../resources/com/example/icons/credit.png | Bin 0 -> 77916 bytes .../resources/com/example/icons/facebook.png | Bin 0 -> 18840 bytes .../resources/com/example/icons/instagram.png | Bin 0 -> 73468 bytes .../resources/com/example/icons/linkedin.png | Bin 0 -> 33984 bytes .../resources/com/example/icons/paypal.png | Bin 0 -> 21235 bytes .../resources/com/example/icons/twitter.png | Bin 0 -> 28358 bytes .../resources/com/example/images/background | Bin 0 -> 504555 bytes .../src/main/resources/com/example/login.fxml | 104 +++++ .../main/resources/com/example/register.fxml | 116 +++++ .../src/main/resources/com/example/shop.fxml | 153 +++++++ .../src/main/resources/com/example/styles.css | 423 ++++++++++++++++++ .../target/classes/com/example/App.class | Bin 0 -> 1943 bytes .../com/example/PrimaryController$1.class | Bin 0 -> 2292 bytes .../com/example/PrimaryController$Item.class | Bin 0 -> 1001 bytes .../com/example/PrimaryController.class | Bin 0 -> 2221 bytes .../com/example/SecondaryController.class | Bin 0 -> 577 bytes .../target/classes/com/example/cart.fxml | 100 +++++ .../target/classes/com/example/checkOut.fxml | 172 +++++++ .../target/classes/com/example/icons/bill.png | Bin 0 -> 96238 bytes .../classes/com/example/icons/credit.png | Bin 0 -> 77916 bytes .../classes/com/example/icons/facebook.png | Bin 0 -> 18840 bytes .../classes/com/example/icons/instagram.png | Bin 0 -> 73468 bytes .../classes/com/example/icons/linkedin.png | Bin 0 -> 33984 bytes .../classes/com/example/icons/paypal.png | Bin 0 -> 21235 bytes .../classes/com/example/icons/twitter.png | Bin 0 -> 28358 bytes .../classes/com/example/images/background | Bin 0 -> 504555 bytes .../target/classes/com/example/login.fxml | 104 +++++ .../target/classes/com/example/register.fxml | 116 +++++ .../target/classes/com/example/shop.fxml | 153 +++++++ .../target/classes/com/example/styles.css | 423 ++++++++++++++++++ .../target/classes/module-info.class | Bin 0 -> 231 bytes Code/ost/_00_java_fx_project/pom.xml | 51 +++ .../src/main/java/com/example/App.java | 38 ++ .../java/com/example/PrimaryController.java | 12 + .../java/com/example/SecondaryController.java | 12 + .../src/main/java/module-info.java | 7 + .../main/resources/com/example/primary.fxml | 16 + .../main/resources/com/example/secondary.fxml | 16 + .../target/classes/com/example/App.class | Bin 0 -> 1946 bytes .../com/example/PrimaryController.class | Bin 0 -> 575 bytes .../com/example/SecondaryController.class | Bin 0 -> 577 bytes .../target/classes/com/example/primary.fxml | 16 + .../target/classes/com/example/secondary.fxml | 16 + .../target/classes/module-info.class | Bin 0 -> 231 bytes .../_10_steuerrechner/.vscode/settings.json | 3 + .../src/main/java/com/example/App.java | 1 + .../main/resources/com/example/primary.fxml | 34 +- .../src/main/resources/com/example/styles.css | 49 ++ .../target/classes/com/example/App.class | Bin 1946 -> 2269 bytes .../target/classes/com/example/primary.fxml | 34 +- .../target/classes/com/example/styles.css | 49 ++ .../compile/default-compile/createdFiles.lst | 4 + .../compile/default-compile/inputFiles.lst | 4 + Code/ost/_11_simpson-list/pom.xml | 51 +++ .../src/main/java/com/example/App.java | 38 ++ .../java/com/example/PrimaryController.java | 71 +++ .../java/com/example/SecondaryController.java | 12 + .../src/main/java/module-info.java | 7 + .../main/resources/com/example/primary.fxml | 50 +++ .../main/resources/com/example/secondary.fxml | 16 + .../target/classes/com/example/App.class | Bin 0 -> 1946 bytes .../com/example/PrimaryController.class | Bin 0 -> 3376 bytes .../com/example/SecondaryController.class | Bin 0 -> 577 bytes .../target/classes/com/example/primary.fxml | 50 +++ .../target/classes/com/example/secondary.fxml | 16 + .../target/classes/module-info.class | Bin 0 -> 231 bytes .../_12_tooltip_status/.vscode/settings.json | 3 + Code/ost/_12_tooltip_status/pom.xml | 51 +++ .../src/main/java/com/example/App.java | 38 ++ .../java/com/example/PrimaryController.java | 73 +++ .../src/main/java/module-info.java | 7 + .../main/resources/com/example/primary.fxml | 44 ++ .../target/classes/com/example/App.class | Bin 0 -> 1946 bytes .../com/example/PrimaryController.class | Bin 0 -> 2492 bytes .../target/classes/com/example/primary.fxml | 44 ++ .../target/classes/module-info.class | Bin 0 -> 231 bytes 163 files changed, 3875 insertions(+), 47 deletions(-) create mode 100644 Code/Steiner/dynamicCasting/.vscode/settings.json create mode 100644 Code/Steiner/dynamicCasting/README.md create mode 100644 Code/Steiner/dynamicCasting/bin/App.class create mode 100644 Code/Steiner/dynamicCasting/bin/Article.class create mode 100644 Code/Steiner/dynamicCasting/bin/Audio.class create mode 100644 Code/Steiner/dynamicCasting/bin/Book.class create mode 100644 Code/Steiner/dynamicCasting/bin/CD.class create mode 100644 Code/Steiner/dynamicCasting/bin/Camera.class create mode 100644 Code/Steiner/dynamicCasting/bin/MP3.class create mode 100644 Code/Steiner/dynamicCasting/src/App.java create mode 100644 Code/Steiner/dynamicCasting/src/Article.java create mode 100644 Code/Steiner/dynamicCasting/src/Audio.java create mode 100644 Code/Steiner/dynamicCasting/src/Book.java create mode 100644 Code/Steiner/dynamicCasting/src/CD.java create mode 100644 Code/Steiner/dynamicCasting/src/Camera.java create mode 100644 Code/Steiner/dynamicCasting/src/MP3.java create mode 100644 Code/Steiner/gameWithCards/.vscode/settings.json create mode 100644 Code/Steiner/gameWithCards/README.md create mode 100644 Code/Steiner/gameWithCards/bin/App.class create mode 100644 Code/Steiner/gameWithCards/bin/Board.class create mode 100644 Code/Steiner/gameWithCards/bin/Card.class create mode 100644 Code/Steiner/gameWithCards/bin/Field.class create mode 100644 Code/Steiner/gameWithCards/bin/Game.class create mode 100644 Code/Steiner/gameWithCards/bin/Magic.class create mode 100644 Code/Steiner/gameWithCards/bin/Unit.class create mode 100644 Code/Steiner/gameWithCards/src/App.java create mode 100644 Code/Steiner/gameWithCards/src/Board.java create mode 100644 Code/Steiner/gameWithCards/src/Card.java create mode 100644 Code/Steiner/gameWithCards/src/Field.java create mode 100644 Code/Steiner/gameWithCards/src/Game.java create mode 100644 Code/Steiner/gameWithCards/src/Magic.java create mode 100644 Code/Steiner/gameWithCards/src/Unit.java create mode 100644 Code/Steiner/interfacesTheorie/.vscode/settings.json create mode 100644 Code/Steiner/interfacesTheorie/README.md create mode 100644 Code/Steiner/interfacesTheorie/bin/App.class create mode 100644 Code/Steiner/interfacesTheorie/bin/ITierBewegen.class create mode 100644 Code/Steiner/interfacesTheorie/bin/ITierNahrungsaufnahme.class create mode 100644 Code/Steiner/interfacesTheorie/bin/Kuckuck.class create mode 100644 Code/Steiner/interfacesTheorie/bin/Vogel.class create mode 100644 Code/Steiner/interfacesTheorie/src/App.java create mode 100644 Code/Steiner/interfacesTheorie/src/ITierBewegen.java create mode 100644 Code/Steiner/interfacesTheorie/src/ITierNahrungsaufnahme.java create mode 100644 Code/Steiner/interfacesTheorie/src/Kuckuck.java create mode 100644 Code/Steiner/interfacesTheorie/src/Vogel.java create mode 100644 Code/Steiner/pruefung04-12-24(2)/.vscode/settings.json create mode 100644 Code/Steiner/pruefung04-12-24(2)/README.md create mode 100644 Code/Steiner/pruefung04-12-24(2)/bin/App.class create mode 100644 Code/Steiner/pruefung04-12-24(2)/bin/LabeledRectangle.class create mode 100644 Code/Steiner/pruefung04-12-24(2)/src/App.class create mode 100644 Code/Steiner/pruefung04-12-24(2)/src/App.java create mode 100644 Code/Steiner/pruefung04-12-24(2)/src/LabeledRectangle.class create mode 100644 Code/Steiner/pruefung04-12-24(2)/src/LabeledRectangle.java create mode 100644 Code/Steiner/pruefung04-12-24/.vscode/settings.json create mode 100644 Code/Steiner/pruefung04-12-24/README.md create mode 100644 Code/Steiner/pruefung04-12-24/bin/App.class create mode 100644 Code/Steiner/pruefung04-12-24/bin/DatenanalysePlugin.class create mode 100644 Code/Steiner/pruefung04-12-24/bin/Plugin.class create mode 100644 Code/Steiner/pruefung04-12-24/bin/UIPlugin.class create mode 100644 Code/Steiner/pruefung04-12-24/src/App.class create mode 100644 Code/Steiner/pruefung04-12-24/src/App.java create mode 100644 Code/Steiner/pruefung04-12-24/src/DatenanalysePlugin.class create mode 100644 Code/Steiner/pruefung04-12-24/src/DatenanalysePlugin.java create mode 100644 Code/Steiner/pruefung04-12-24/src/Plugin.class create mode 100644 Code/Steiner/pruefung04-12-24/src/Plugin.java create mode 100644 Code/Steiner/pruefung04-12-24/src/UIPlugin.class create mode 100644 Code/Steiner/pruefung04-12-24/src/UIPlugin.java create mode 100644 Code/Steiner/samsung(Interfaces-task)/.vscode/settings.json create mode 100644 Code/Steiner/samsung(Interfaces-task)/README.md create mode 100644 Code/Steiner/samsung(Interfaces-task)/bin/App.class create mode 100644 Code/Steiner/samsung(Interfaces-task)/bin/GalaxyJ3.class create mode 100644 Code/Steiner/samsung(Interfaces-task)/bin/GalaxyS5.class create mode 100644 Code/Steiner/samsung(Interfaces-task)/bin/ITelefon.class create mode 100644 Code/Steiner/samsung(Interfaces-task)/bin/Samsung.class create mode 100644 Code/Steiner/samsung(Interfaces-task)/src/App.java create mode 100644 Code/Steiner/samsung(Interfaces-task)/src/GalaxyJ3.java create mode 100644 Code/Steiner/samsung(Interfaces-task)/src/GalaxyS5.java create mode 100644 Code/Steiner/samsung(Interfaces-task)/src/ITelefon.java create mode 100644 Code/Steiner/samsung(Interfaces-task)/src/Samsung.java create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/pom.xml create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/App.java create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/PrimaryController.java create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/SecondaryController.java create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/module-info.java create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/cart.fxml create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/checkOut.fxml create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/icons/bill.png create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/icons/credit.png create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/icons/facebook.png create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/icons/instagram.png create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/icons/linkedin.png create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/icons/paypal.png create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/icons/twitter.png create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/images/background create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/login.fxml create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/register.fxml create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/shop.fxml create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/styles.css create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/App.class create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/PrimaryController$1.class create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/PrimaryController$Item.class create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/PrimaryController.class create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/SecondaryController.class create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/cart.fxml create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/checkOut.fxml create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/icons/bill.png create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/icons/credit.png create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/icons/facebook.png create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/icons/instagram.png create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/icons/linkedin.png create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/icons/paypal.png create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/icons/twitter.png create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/images/background create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/login.fxml create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/register.fxml create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/shop.fxml create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/styles.css create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/module-info.class create mode 100644 Code/ost/_00_java_fx_project/pom.xml create mode 100644 Code/ost/_00_java_fx_project/src/main/java/com/example/App.java create mode 100644 Code/ost/_00_java_fx_project/src/main/java/com/example/PrimaryController.java create mode 100644 Code/ost/_00_java_fx_project/src/main/java/com/example/SecondaryController.java create mode 100644 Code/ost/_00_java_fx_project/src/main/java/module-info.java create mode 100644 Code/ost/_00_java_fx_project/src/main/resources/com/example/primary.fxml create mode 100644 Code/ost/_00_java_fx_project/src/main/resources/com/example/secondary.fxml create mode 100644 Code/ost/_00_java_fx_project/target/classes/com/example/App.class create mode 100644 Code/ost/_00_java_fx_project/target/classes/com/example/PrimaryController.class create mode 100644 Code/ost/_00_java_fx_project/target/classes/com/example/SecondaryController.class create mode 100644 Code/ost/_00_java_fx_project/target/classes/com/example/primary.fxml create mode 100644 Code/ost/_00_java_fx_project/target/classes/com/example/secondary.fxml create mode 100644 Code/ost/_00_java_fx_project/target/classes/module-info.class create mode 100644 Code/ost/_10_steuerrechner/.vscode/settings.json create mode 100644 Code/ost/_10_steuerrechner/src/main/resources/com/example/styles.css create mode 100644 Code/ost/_10_steuerrechner/target/classes/com/example/styles.css create mode 100644 Code/ost/_10_steuerrechner/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst create mode 100644 Code/ost/_10_steuerrechner/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst create mode 100644 Code/ost/_11_simpson-list/pom.xml create mode 100644 Code/ost/_11_simpson-list/src/main/java/com/example/App.java create mode 100644 Code/ost/_11_simpson-list/src/main/java/com/example/PrimaryController.java create mode 100644 Code/ost/_11_simpson-list/src/main/java/com/example/SecondaryController.java create mode 100644 Code/ost/_11_simpson-list/src/main/java/module-info.java create mode 100644 Code/ost/_11_simpson-list/src/main/resources/com/example/primary.fxml create mode 100644 Code/ost/_11_simpson-list/src/main/resources/com/example/secondary.fxml create mode 100644 Code/ost/_11_simpson-list/target/classes/com/example/App.class create mode 100644 Code/ost/_11_simpson-list/target/classes/com/example/PrimaryController.class create mode 100644 Code/ost/_11_simpson-list/target/classes/com/example/SecondaryController.class create mode 100644 Code/ost/_11_simpson-list/target/classes/com/example/primary.fxml create mode 100644 Code/ost/_11_simpson-list/target/classes/com/example/secondary.fxml create mode 100644 Code/ost/_11_simpson-list/target/classes/module-info.class create mode 100644 Code/ost/_12_tooltip_status/.vscode/settings.json create mode 100644 Code/ost/_12_tooltip_status/pom.xml create mode 100644 Code/ost/_12_tooltip_status/src/main/java/com/example/App.java create mode 100644 Code/ost/_12_tooltip_status/src/main/java/com/example/PrimaryController.java create mode 100644 Code/ost/_12_tooltip_status/src/main/java/module-info.java create mode 100644 Code/ost/_12_tooltip_status/src/main/resources/com/example/primary.fxml create mode 100644 Code/ost/_12_tooltip_status/target/classes/com/example/App.class create mode 100644 Code/ost/_12_tooltip_status/target/classes/com/example/PrimaryController.class create mode 100644 Code/ost/_12_tooltip_status/target/classes/com/example/primary.fxml create mode 100644 Code/ost/_12_tooltip_status/target/classes/module-info.class diff --git a/Code/Steiner/JavaOldCode/src/Testcode.java b/Code/Steiner/JavaOldCode/src/Testcode.java index cfca6b9..7a532fb 100644 --- a/Code/Steiner/JavaOldCode/src/Testcode.java +++ b/Code/Steiner/JavaOldCode/src/Testcode.java @@ -1,5 +1,5 @@ public class Testcode { public static void main(String[] args) { - System.out.println("I LOVE C POINTERS --Patrick"); + } } diff --git a/Code/Steiner/dynamicCasting/.vscode/settings.json b/Code/Steiner/dynamicCasting/.vscode/settings.json new file mode 100644 index 0000000..e112a70 --- /dev/null +++ b/Code/Steiner/dynamicCasting/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "java.project.sourcePaths": ["src"], + "java.project.outputPath": "bin", + "java.project.referencedLibraries": [ + "lib/**/*.jar" + ] +} diff --git a/Code/Steiner/dynamicCasting/README.md b/Code/Steiner/dynamicCasting/README.md new file mode 100644 index 0000000..7c03a53 --- /dev/null +++ b/Code/Steiner/dynamicCasting/README.md @@ -0,0 +1,18 @@ +## Getting Started + +Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code. + +## Folder Structure + +The workspace contains two folders by default, where: + +- `src`: the folder to maintain sources +- `lib`: the folder to maintain dependencies + +Meanwhile, the compiled output files will be generated in the `bin` folder by default. + +> If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there. + +## Dependency Management + +The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies). diff --git a/Code/Steiner/dynamicCasting/bin/App.class b/Code/Steiner/dynamicCasting/bin/App.class new file mode 100644 index 0000000000000000000000000000000000000000..1d161fe90b6710785424553f7e1bb25829845878 GIT binary patch literal 1825 zcma)6OIsUd6n;NQGDDi$I;7Z()u3WYOB)FEBB4miMbMC9lY*gDJA^42m}KH)Qo*YA z-i14Nb)&AdOI;9cAARc9U(l^<|AY8`lLW#;7ZRRtX3ja^Ip=-P<*$Dq{IRu#aeSqq zO`ttlE-UZ}99-3J=`l+$t;8-btr~e(ATVNn8BSJTvJ3$&W#@HkUUy9S-4OcRf>{yprx+?hH$~kn33T;dOYMZrxQ%S=(AOjgpGz1&(G5MnsxNTsz`aEhC~^R%D5SN)TP>mT+GX81CJh@Wfux zUP*Lbru9+?J$RX9>dVUlhgzN02~R{974(w!alL3bx{8y`vwuMT;(@WptBvf>2&hxl zRr9846@xf|ewp5YKyRzZ2A@wzFFLPaP@rvmLd97bU~uT{x$_qSWB)w(UPe&y3MnfX zmSrnoxmx<7?o`D^8ca(A6|eGj!FH@=6-hQkc6ufg;eU2|GBTN-2(ry46-+d}?9{3f z!W3R3R=pz2CeX919h!vHx%93{vxMYvM&f;4;79|nryaK~i#^MxVGjinM@m}F3S9hu zth5B$?j?FsaG3?0of}l~CTYKt%* zaZBLat;Z6o4-)Dy0ZG6rfgI=APlzMbT<7x!38)gHO+PArz=!yVl-J!Q(iFMtleEW=&^Jw3qp-;i*3dc`j(_st8ngRv+ ShREL()opnF3tn%-m;V9bRIaE1 literal 0 HcmV?d00001 diff --git a/Code/Steiner/dynamicCasting/bin/Article.class b/Code/Steiner/dynamicCasting/bin/Article.class new file mode 100644 index 0000000000000000000000000000000000000000..efbe68825365d169ae6668cd59fb57fbed032904 GIT binary patch literal 509 zcmZWk%}&BV7@TbjwWWfh;ty)@2AIeLNK6dG6VU^PL~m_va7ihq78Bpeiw9!j!3Xf6 z#Mz~Z2M;^n-+nXmegAxZEtlxw*oGlsU#6K1Zs)quK zDyw?1u_jO%$RxU+PlG7E^@CXJ&q6;Q`KeTO-n6nu`7GcJ@*8N$;Q=yU?U4VTCa3;u zpiHWqh7%s;4rlW;jIN}j_VVpBb)j`a8zumQkFJPNo`@zV4qRf1)g5b#vC{s4*FIe^ zX)dt&&X$2KVpWd|#3I*hlu5G9enZn&u!9;a5@;ErGbN;icd?htbQx90vbyy*#uc}# ddnKZ$IcuvwIj6yD9|sWhSEnw>aj18XegPE*QSkr( literal 0 HcmV?d00001 diff --git a/Code/Steiner/dynamicCasting/bin/Audio.class b/Code/Steiner/dynamicCasting/bin/Audio.class new file mode 100644 index 0000000000000000000000000000000000000000..98f6491ddd4e417450ba84c782fd1368667ceeea GIT binary patch literal 427 zcmZusF;2rk5S)uIHZgVr0Ro|;bBshD078lqQCT!W?kFyf6%H929cTVUfsiP80FNT< zI&`6#-JQL;nf?Cx{93Ou#i@suKzmXzb>%?{coSoFR^&ulZMpW7NA;@4g(_F$xiz|6 zT?)8Yy43bsAd0rvvu$dW3dm`-%zZf64d5XV82qOlr5y-#1GM1^^b%d>xAoH^H+O2W ziBn~&NR`n%|B=!@=obo~G>1?=nUNRW@N9HORm?VhX$72!!}#;6Hd%h7`A@%*UGSaq zjNBc75FCN9MZJd|!VXRMki-LFd>(zkkB9Od;al^pN7!w|EOfzV?hzN0gap_}pDK3; av}J=3hd3ew?pPz~;Q+@p3!D(PF#H96g;I$C literal 0 HcmV?d00001 diff --git a/Code/Steiner/dynamicCasting/bin/Book.class b/Code/Steiner/dynamicCasting/bin/Book.class new file mode 100644 index 0000000000000000000000000000000000000000..2dfa42d8e8909283cf1218d7cdf2e882bf4b7df6 GIT binary patch literal 1284 zcmaJ=YflqF6g|_HZdn(ot$_7`RYBS!)VE0S0j)%n`bbJ@jGu;O0t4IKx;rJ|pZGU4 zpa~!R0sbiQ&bA39yYa)$-Z^{b-gEBW`SbVW_vtC>cx@oTkXrY=eFG^5W6f96b_7G3 z_tdWEGvu0k{D4;-?(S4u%9rj=jbTJd6|z>PE7c2zl~R<}h(b}M+@|_iqyrsa+Y6uckIj z7E(49B_~~9+Vp0Pe(WlSWJ%Y$h8Y9b8L~tE4+AAS7H*(OEU!o0$-X7&RX}O zPAv!EmWA7xWti^peNp#Zo2yS!?NSsd?kdu<9Ah)4Ls7`Y9h3~rGvq^Y=c`*NqeB0Z zoVm(zNn=bM?J$YE7N&GJlUTAajmtUe>piXeKEr&>sYW>}hQVxkJ>M1^Qa688_jgIl zqSjHY0_F4WJ3-U59hi86WdlzcX3x4R-2-o542G-Us10r_&p*^ko-uqIRx)7s6Tac@ zwj+YsCe`e9Yf*7S$hm`?hg}gv|1!k?u(c;_RU39ZNKxmG(~?TmCenDE!75D-D=rpU z26Pj$dYD&=%%pj+b--Y~bzR}t9UcTCFtElj7jYlw$3UH7=KoYZ(V=8&H0A4;qvnxC+EJ}j@#=R*PdL;+U@Fx5a#5)TMV;33Hbu@YFJ@3nA!j+ca)w10(l HG*I{l)|W8{ literal 0 HcmV?d00001 diff --git a/Code/Steiner/dynamicCasting/bin/CD.class b/Code/Steiner/dynamicCasting/bin/CD.class new file mode 100644 index 0000000000000000000000000000000000000000..3c0cd86c7c07dca09895b60f604357ef8781f541 GIT binary patch literal 2098 zcmbVMT~i!I6g|B=Ft8Z{S-ymPxI~gHUqKCsW(i7mC7=r-E)rw>YIaAMu*_`D^rqz9 zCx3zEi;p~;(xfC+DWClf{sI4lczSjSi#ugm*4FlP-@fAG^N(~G_@_lr)Tasr(tXWNyk?%M)maX#}6 zV^zA_(!<~RTiI5JLaQk*b#81^;NJg_kATG=i$?Vu>Cjgr`3INtQS4&#m5axbUZj9GXU7t#PGEKFibU~o_F+Ii0{ zOLgB-JDdedx{4gG#^@PUPcxGgrtyY}*N-JVeX4~waYMii@mF19i_1!-lbE$|9vAd% z&ca1pN)zup8s$xaYcWxUSTH@9w{QzA+73tAzEqx1U9-()zY^JVXYd|wn^@!xom9i| zuEl=i)fle*4JGY6&Ja?+yY{$zHnVr zCG6Xtr-(+@R&BN8Re}`m6H(yNT-AK4B z-AdICMvI=eTd(C>Q8!sm1#YnHW85D$`A7OU^Nv#FWwl!3#pk-)vDtyoSq2-rw{B)c z2fie2{c3QLVrP^aR*EsWPW3b4Gnx_nRct?#FJy#(wc@(ApRdXwumcknfh#TQ#PK!p zwZNr+cV#&=#K8zlJ;|mN{PVTp*W@gL4qEwqBgJ{cat0Q6z6-s8;qi&=kns#%>8U{y`xeWAj9Ads#XqjOSX5f05Up-^@g$Raq_wht+<7*Md z4~HkVAw#Pbd9^W{&M|^MS~RW$`f47_PjGqsXJijC4m`#6#&U+Hw+``kXyUy8DRQd^ z=$rf%?+W~e_lxwKpgRqB1b#UB^Mu7PRROxtjkCDSagI;*0>5|2PqP^a@h(Sf=E(QM zkWG<$=a4wU6p|)Unru#n0;?}U|47hUqFG};0=0I4k*Q-)s|0m^vcYC8g#N7%+zk=_ z@lS;P#4$kK2azSN3C?GzqDGhrm6?qYCU67y@DULW5{Sl{fX2%1KO#+oSR=3(8CT*? f0vq_4-#)G%GVZf*{30B`!WMT@w3cCG8$*8syJGd( literal 0 HcmV?d00001 diff --git a/Code/Steiner/dynamicCasting/bin/Camera.class b/Code/Steiner/dynamicCasting/bin/Camera.class new file mode 100644 index 0000000000000000000000000000000000000000..ef7218e858c8a635ee0b409affb476ee94a82335 GIT binary patch literal 1206 zcmaJ=*-qO)6g@*i9E?L~C{VgkmH`T_l@(mQdahQ{iH$M;^}<(%s?zkZ+oJUc@TRSQE5sTyyIfLlm1Set>Ct|u6V zn*mpQ47vItKjvkRtNn6A2U6`LLP;;dT&2kLA;^1m*EMmz*o?)U3<@_uM%UGe`LOhiA6d{W1N_-M1 zI+#GpSgQ^$Vlqd2ylGIbF|5Q?ZN-3Lup53SaK*MX%N~vPxn_XTs;a)PLmlw;E1?hk zz0k&8+_!L#A^&%aQXTt8q9>JTG27hLesE&2JYe|LkENF#HGDyW^F)}h`~Fd2gKA-fU*_~qgPy8Di zFG(N#0sbiQ%(e+7ZHy0{J?EQq`OeofzyGv;ou8wG9RmXlk=?yz15t+9Mx!DmeO>My zR~gdf6Z_0AxVCp(*jK*rj*ATOHQ@=h&aj&8z254DdXd~AL$o9-Jc$T~Oc*d3vj0~t zcQ^=!D<)!yGo;GG<8K?aBkmvAM=sZtrDMB?wlB2b0i&ua0vfAKgVF?1hkBD+_k}}W zwnerQN~degQzS`NH@bma25vHpbji>R6t9`MjY*1<4T>FaPbg$zPbZU5+^!WhP0PeJ z#M1z#Ox(jX!$i$KgYL~<;vIgcDMnh7UyPC)$&tQa8 zxE^uqSCuA<;J%4b#I?0xVhrPH;`>muTx6K*leN`{Od122Vo2`GhVSrgp%qM!#tWJn z$+jt_3Y2fxce$#{N|3|~o*8(`Fnyt@@Xq8Z@9bAwnr+)r(r;=us|=sJ*>s}Y1$S(( z;__g+EahpVUhGw?3%Qhd(5&-5;UBu<-yNNBM-{uL?vyCmuDdT3FQ(#nlE8DC`9N>a zs>Kp`L1XLHCMQYj;Iz>VhLy5@Qv_RCy^Yo>^kuY=AgFrtcU{Q>6Q~@LUhim)NA6B%vj|!fRyy0wY#M0{{R3 literal 0 HcmV?d00001 diff --git a/Code/Steiner/dynamicCasting/src/App.java b/Code/Steiner/dynamicCasting/src/App.java new file mode 100644 index 0000000..8425146 --- /dev/null +++ b/Code/Steiner/dynamicCasting/src/App.java @@ -0,0 +1,21 @@ +import java.util.ArrayList; +import java.util.Arrays; + +public class App { + public static void main(String[] args) throws Exception { + ArrayList
list = new ArrayList
(); + list.add(new Book("11241", 12, "Tolkien", "The Book to rule all books")); + list.add(new Camera("0101012", 25000, "Fujifilm")); + list.add(new CD("0345678", 56789, "hello", + new ArrayList(Arrays.asList("Hello", "World", "THIS IS THE END")))); + list.add(new MP3("RASPUTIN", 456789, "Rasputin", "lengh")); + + for (Article article : list) { + article.print(); + if (article instanceof CD) { + ((CD) article).playTrack(); + } + System.out.println(); + } + } +} diff --git a/Code/Steiner/dynamicCasting/src/Article.java b/Code/Steiner/dynamicCasting/src/Article.java new file mode 100644 index 0000000..a608e1a --- /dev/null +++ b/Code/Steiner/dynamicCasting/src/Article.java @@ -0,0 +1,16 @@ +public abstract class Article { + String code; + double price; + + public Article(String code, double price) { + this.code = code; + this.price = price; + } + + boolean available() { + boolean maybe = true; + return maybe; + } + + abstract void print(); +} diff --git a/Code/Steiner/dynamicCasting/src/Audio.java b/Code/Steiner/dynamicCasting/src/Audio.java new file mode 100644 index 0000000..a6e9125 --- /dev/null +++ b/Code/Steiner/dynamicCasting/src/Audio.java @@ -0,0 +1,11 @@ +public abstract class Audio extends Article { + String title; + + public Audio(String code, double price, String title) { + super(code, price); + this.title = title; + } + + abstract void print(); + +} diff --git a/Code/Steiner/dynamicCasting/src/Book.java b/Code/Steiner/dynamicCasting/src/Book.java new file mode 100644 index 0000000..848e649 --- /dev/null +++ b/Code/Steiner/dynamicCasting/src/Book.java @@ -0,0 +1,16 @@ +public class Book extends Article { + String author; + String title; + + public Book(String code, double price, String author, String title) { + super(code, price); + this.author = author; + this.title = title; + } + + @Override + void print() { + System.out.println(this.author + " - " + this.title); + System.out.println("Code: " + super.code + "\nPrice: " + super.price); + } +} diff --git a/Code/Steiner/dynamicCasting/src/CD.java b/Code/Steiner/dynamicCasting/src/CD.java new file mode 100644 index 0000000..45bfc33 --- /dev/null +++ b/Code/Steiner/dynamicCasting/src/CD.java @@ -0,0 +1,27 @@ +import java.util.ArrayList; + +public class CD extends Audio { + ArrayList tracks = new ArrayList<>(); + + public CD(String code, double price, String title, ArrayList tracks) { + super(code, price, title); + this.tracks = tracks; + } + + @Override + void print() { + System.out.println("Title: " + title); + System.out.println("Code: " + super.code + "\nPrice: " + super.price); + for (String string : tracks) { + System.out.println(string); + } + } + + void playTrack() { + int i = 1; + for (String string : tracks) { + System.out.println("Play track " + i + " " + string + " der CD " + title); + i++; + } + } +} diff --git a/Code/Steiner/dynamicCasting/src/Camera.java b/Code/Steiner/dynamicCasting/src/Camera.java new file mode 100644 index 0000000..fbae850 --- /dev/null +++ b/Code/Steiner/dynamicCasting/src/Camera.java @@ -0,0 +1,14 @@ +public class Camera extends Article { + String brand; + + public Camera(String code, double price, String brand) { + super(code, price); + this.brand = brand; + } + + @Override + void print() { + System.out.println("Brand: " + this.brand); + System.out.println("Code: " + super.code + "\nPrice: " + super.price); + } +} diff --git a/Code/Steiner/dynamicCasting/src/MP3.java b/Code/Steiner/dynamicCasting/src/MP3.java new file mode 100644 index 0000000..1064848 --- /dev/null +++ b/Code/Steiner/dynamicCasting/src/MP3.java @@ -0,0 +1,15 @@ +public class MP3 extends Audio { + String lengh; + + public MP3(String code, double price, String title, String lengh) { + super(code, price, title); + this.lengh = lengh; + } + + @Override + void print() { + System.out.println("Title: " + title); + System.out.println("Code: " + super.code + "\nPrice: " + super.price); + System.out.println("Lengh: " + lengh + " (this was not my typo i was forced to do this)"); + } +} diff --git a/Code/Steiner/gameWithCards/.vscode/settings.json b/Code/Steiner/gameWithCards/.vscode/settings.json new file mode 100644 index 0000000..e112a70 --- /dev/null +++ b/Code/Steiner/gameWithCards/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "java.project.sourcePaths": ["src"], + "java.project.outputPath": "bin", + "java.project.referencedLibraries": [ + "lib/**/*.jar" + ] +} diff --git a/Code/Steiner/gameWithCards/README.md b/Code/Steiner/gameWithCards/README.md new file mode 100644 index 0000000..7c03a53 --- /dev/null +++ b/Code/Steiner/gameWithCards/README.md @@ -0,0 +1,18 @@ +## Getting Started + +Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code. + +## Folder Structure + +The workspace contains two folders by default, where: + +- `src`: the folder to maintain sources +- `lib`: the folder to maintain dependencies + +Meanwhile, the compiled output files will be generated in the `bin` folder by default. + +> If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there. + +## Dependency Management + +The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies). diff --git a/Code/Steiner/gameWithCards/bin/App.class b/Code/Steiner/gameWithCards/bin/App.class new file mode 100644 index 0000000000000000000000000000000000000000..dae8c597a53bc229c125af0e2ebf0eb074900aec GIT binary patch literal 431 zcmZut%SyvQ6g`ti^RO?i#^=UeTfu%nMUa9b1YJ}L;%XX0oYE#GP5m!778LvdKgxQh z6}oX??w$KM=iEErKObMqC3-k{%gmj%CR_Az$MkJc|jT96i(&RP+1U zJdfgQrN?tQ!MPU2DYzB%G5F#(v<{;Vy`Z<-3%GBqvQMka;N7AvuN&wqj676PV@88- vNoLSjK2d*M@H5Wd(b$kwSBfTFSOnWEvS1BBfPDg8W)E;kI)Nj`29AFLXQ@h_ literal 0 HcmV?d00001 diff --git a/Code/Steiner/gameWithCards/bin/Board.class b/Code/Steiner/gameWithCards/bin/Board.class new file mode 100644 index 0000000000000000000000000000000000000000..5f3ad4ad9696b966ca3994236807f9a1df4c373a GIT binary patch literal 1835 zcmaKtO;g)e6o%hx$;fsL1oM#wL*gWS*e=1Xq3MT7(n3n&)&yD;2w^2`6$G~Au>@0h z&A!{FyR6t`(@sNX=uBt2XczqxU3A-D&}K^CD+vOH=`hkgNB7)wp7Y*&&2Rr4{B(GT z8LVgs352I@y;;?u3S8XOcl2CMx7Ks>Ynw*J6^N`i&1%{F$`BAm0adyJ(bd(`tZCG$ z1%b9H(=y#VoJ$uoOB`nGsu6>N_Bf*G5Kz*Yr6`y^jxgFZM5NOl2Q3Y~1n@G&(1Uh? z&XQ>v54Y=UMsrbLtFdgNWLNaslHN3>AAD5Z4bu_ON*+8Zgvn=9puOzsm906w5d=mX zHN9dyA|VTqNbn7hBA0l zL-v$t<(A_b^*F|GlbP&o*6b~LnwoZQp=nxf*=-tny^sKqi{mZ4EpVx>Zy7VTRngsL z)7_xuxVq)CyFSV5ulM$Zi%o025W@uC(J)C7&&eIfExb!*8nRr?B0>6Wip)|3?+f&M zouy1CrPs(+ZKdo$h;gd1lOj=H|?ih+gsa>!dYQXd^xpn zvDGln312-C@86ih$qfrq%;>dR*>sIUXB&zUEO1ZcflPTvvzpS~R9cLsL?(jI1$w+G zDQ7k1+QE!Kyl7cQbEc*{j^Su{BrtqNk@I@guq<%p|3i6)eL--I8>{eahWN+3>RG&| z997Ol5###;y`Sl;9B*e|BA!jYKxa0Y`~_X17f2|#_i$agvxna74@eB;2Y*D*%1iW> zcNH<1e0KQfZb%Gp{QWy7P;iOw5vB$Usw^4h??N|AzCmk{1;;o}(w{;*zX4glFfOB? z9uYiHN{Ue=xjw}2{TQI7a6Qlm^^gk{4MGUu6@TZt{$dTPf~!G0Uo%#=Jt2vc`GNdC zQs3h0k*Drs=zFA-0|yuf_L1Mi1^S8iXufWu-_z?NI?zRc1aZ0v+k-q2BzVd%aST3z z54eIzyv_v=T;i$-WhLAc8}qgPmFvQsSvbNW+*3?RZ!q7h`m8sPCKa+CPX*wEz3Kt( zoFu<{iu?-Y0J#RqouP=gDBnGL_bJglxh4Ii&u~n?fR6(D1x$PNB;@}TDZ8}p(Net) z;FkQ2`?9BxaUgy~Kn%-*pl|36tak_pOk;$x0U3WZNs5lj<>y3FI z$MN=2tGR%f3do*b>a;IlcP=IZ&R{iHK5QHW@KC8jpccS|+MpMx}o&{F~Kw9jl?vkiL1m%qhZ8P)CF-mNc{dtpGRsJ@!|NQms$H@uin0jy++(&#ZJh%+)1OApzS6uB+pCtz( zH4N26^K6g7iyv4pW7xVUl{EJmD#Ou|y61XN1gM}M!h`RjK}{t$K!}ztwuv=-JX+Sk z&<#<=7DFqRN<1yriO62?WF_b&)+t{tc_wYXDZ1vh%*ivhGm?2VH#{>|`Fw~AxJVV5 zztpOn=2Z=sam7RLpG_9;b0gLv`WO&P7qnCqmy1e0eV$2W7A6yXJ@avm!Qa(I|D9BW z05@>U!%c?m|ByorF`}y++Wr;UN5fOi@^~aD)&6X>^l_V3wX^qAt&CKK$R`Yqh2iO& zC;V`;Ww6jimWqec-l1mc6YGfq9jpRSbnMj#IfUuT6l;{t;SvHm<6{Kl?+ADOV>G{_ z^Qok6Q*4$3E)lC}lf)USg{Mu3utOQc**}6wX#n)bU(h+ixesW5#-;AnBV7N8x`ktc oR=onNzC)@&KwlkQ(v8rdU(ou?rMGdpLp&Ew#mmflv-94}WPg6YzL!gMapJ*ZDBbf!3J(s0)8+Y?lE`L?f%O>NYne)Q!_aI- z&wRn#6P_mRfy!l?bk-}q)=;}-(C7fLR;A_pqaJ^mn@=OVt7dJEqSy3)?h8SQHW6fM0pA)By=GQ|q9N8%3UAiTKz zgdd)Mp!P=GLY?A<(Q2KGDycT978d>3LW3A7v5g&a(`c8FWsuhBNqg8|O=?rtU8V3H dwO0bg2-g&SV;vL?g*E;40S>8;;mC9!{{hTQW7hxx literal 0 HcmV?d00001 diff --git a/Code/Steiner/gameWithCards/bin/Unit.class b/Code/Steiner/gameWithCards/bin/Unit.class new file mode 100644 index 0000000000000000000000000000000000000000..bde39f8d8bc687b2500a6469539b51772f32e141 GIT binary patch literal 433 zcmXX@O;5r=5PjQLYO#U>;s20h3R(0Cy+X+rd%a$m|S#nL8F_+K1|i3fjxKT3R4 zJnYPy$-MVwcYl7rzIQte&~afYIIn4(yKodvW_qpriB8}9Pve=1a)r{==p>&is8GS3 zm^YIy4cj`;b@V}S7n6NY&<(?|H=^7io0u|e9Q*K4QLwwckq4^#I6z5I&4;^34IhUn zDO87XY93efv01$6aYBdMFpG3D(u-K?|E7~q<0ZX@vhpoKvCxF3^K4C0`8iuHBJ&W7 zf+s^aawX@QrZ&Li$PPq~Y*1wS7nuZXN&rVeG6xd zO=^K`(eikY3S*rbO?HDlALqDWMWw=56-b<|0*SZHhrc9OK0q`iUrFXJEk+CNKfJg= Ay#N3J literal 0 HcmV?d00001 diff --git a/Code/Steiner/gameWithCards/src/App.java b/Code/Steiner/gameWithCards/src/App.java new file mode 100644 index 0000000..0230199 --- /dev/null +++ b/Code/Steiner/gameWithCards/src/App.java @@ -0,0 +1,6 @@ +public class App { + public static void main(String[] args) { + Game game = new Game(); + game.start(); + } +} \ No newline at end of file diff --git a/Code/Steiner/gameWithCards/src/Board.java b/Code/Steiner/gameWithCards/src/Board.java new file mode 100644 index 0000000..1be5f29 --- /dev/null +++ b/Code/Steiner/gameWithCards/src/Board.java @@ -0,0 +1,43 @@ +public class Board { + private int gridSize; + private Field[][] grid; + + public Board(int gridSize) { + this.gridSize = gridSize; + grid = new Field[gridSize][gridSize]; + for (int i = 0; i < gridSize; i++) { + for (int j = 0; j < gridSize; j++) { + grid[i][j] = new Field(); + } + } + } + + public void placeUnit(int x, int y) { + if (!grid[x][y].isFieldOccupied()) { + grid[x][y].setFieldOccupied(true); + System.out.println("Unit placed at (" + x + ", " + y + ")"); + } else { + System.out.println("Field is already occupied."); + } + } + + public void moveUnit(int fromX, int fromY, int toX, int toY) { + if (grid[fromX][fromY].isFieldOccupied() && !grid[toX][toY].isFieldOccupied()) { + grid[fromX][fromY].setFieldOccupied(false); + grid[toX][toY].setFieldOccupied(true); + System.out.println("Unit moved to (" + toX + ", " + toY + ")"); + } else { + System.out.println("Invalid move."); + } + } + + public boolean isWon() { + // Example condition: if any unit reaches the last row + for (int j = 0; j < gridSize; j++) { + if (grid[gridSize - 1][j].isFieldOccupied()) { + return true; + } + } + return false; + } +} \ No newline at end of file diff --git a/Code/Steiner/gameWithCards/src/Card.java b/Code/Steiner/gameWithCards/src/Card.java new file mode 100644 index 0000000..0f5d1b5 --- /dev/null +++ b/Code/Steiner/gameWithCards/src/Card.java @@ -0,0 +1,19 @@ +public abstract class Card { + private String cardName; + private String cardDescription; + + public Card(String cardName, String cardDescription) { + this.cardName = cardName; + this.cardDescription = cardDescription; + } + + public String getCardName() { + return cardName; + } + + public String getCardDescription() { + return cardDescription; + } + + public abstract void activate(); +} \ No newline at end of file diff --git a/Code/Steiner/gameWithCards/src/Field.java b/Code/Steiner/gameWithCards/src/Field.java new file mode 100644 index 0000000..7231a59 --- /dev/null +++ b/Code/Steiner/gameWithCards/src/Field.java @@ -0,0 +1,19 @@ +public class Field { + boolean isFieldOccupied; + + public Field() { + this.isFieldOccupied = false; + } + + public Field(boolean isFieldOccupied) { + this.isFieldOccupied = isFieldOccupied; + } + + public boolean isFieldOccupied() { + return isFieldOccupied; + } + + public void setFieldOccupied(boolean isFieldOccupied) { + this.isFieldOccupied = isFieldOccupied; + } +} diff --git a/Code/Steiner/gameWithCards/src/Game.java b/Code/Steiner/gameWithCards/src/Game.java new file mode 100644 index 0000000..b1ebc6b --- /dev/null +++ b/Code/Steiner/gameWithCards/src/Game.java @@ -0,0 +1,16 @@ +public class Game { + private Board board; + + public Game() { + board = new Board(5); // Example grid size + } + + public void start() { + // Example game loop + if (board.isWon()) { + System.out.println("You win!"); + } else { + System.out.println("Game continues."); + } + } +} \ No newline at end of file diff --git a/Code/Steiner/gameWithCards/src/Magic.java b/Code/Steiner/gameWithCards/src/Magic.java new file mode 100644 index 0000000..e39a531 --- /dev/null +++ b/Code/Steiner/gameWithCards/src/Magic.java @@ -0,0 +1,15 @@ +public abstract class Magic extends Card { + private int cost; + + public Magic(String cardName, String cardDescription, int cost) { + super(cardName, cardDescription); + this.cost = cost; + } + + public int getCost() { + return cost; + } + + @Override + public abstract void activate(); +} \ No newline at end of file diff --git a/Code/Steiner/gameWithCards/src/Unit.java b/Code/Steiner/gameWithCards/src/Unit.java new file mode 100644 index 0000000..ad112c1 --- /dev/null +++ b/Code/Steiner/gameWithCards/src/Unit.java @@ -0,0 +1,17 @@ +public abstract class Unit { + protected int health; + protected int defense; + protected int attack; + + public Unit(int health, int defense, int attack) { + this.health = health; + this.defense = defense; + this.attack = attack; + } + + public abstract void defend(); + + public abstract void attack(); + + public abstract void move(); +} \ No newline at end of file diff --git a/Code/Steiner/interfacesTheorie/.vscode/settings.json b/Code/Steiner/interfacesTheorie/.vscode/settings.json new file mode 100644 index 0000000..e112a70 --- /dev/null +++ b/Code/Steiner/interfacesTheorie/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "java.project.sourcePaths": ["src"], + "java.project.outputPath": "bin", + "java.project.referencedLibraries": [ + "lib/**/*.jar" + ] +} diff --git a/Code/Steiner/interfacesTheorie/README.md b/Code/Steiner/interfacesTheorie/README.md new file mode 100644 index 0000000..7c03a53 --- /dev/null +++ b/Code/Steiner/interfacesTheorie/README.md @@ -0,0 +1,18 @@ +## Getting Started + +Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code. + +## Folder Structure + +The workspace contains two folders by default, where: + +- `src`: the folder to maintain sources +- `lib`: the folder to maintain dependencies + +Meanwhile, the compiled output files will be generated in the `bin` folder by default. + +> If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there. + +## Dependency Management + +The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies). diff --git a/Code/Steiner/interfacesTheorie/bin/App.class b/Code/Steiner/interfacesTheorie/bin/App.class new file mode 100644 index 0000000000000000000000000000000000000000..bca8444b5b107d2da269a615542e24f852ccc2a7 GIT binary patch literal 540 zcmZuu+fKqj5Iu{9Lal;a>ivS31T~Qlz?c}LFE;w1F)==sy5b_Xq%G=i`67uXet;h( zo)sc5Hl3NBGt+ZswqM`xpMwF8uw^18Fmc%JnlJ8~TClOGA+sr;VNzS2MQuz07sEau#i7#FZE!d~Rd6QwuK za;ZH%A*$d-K|d*;ctP|gvpS<-Oz-rOef=$4^tue%B)vUsV4Px>!!+_FDe!EtGV@Dw zO(aF6@`2KI9~F1^4GwLdwlt=7s0_}L<)`{L6)03DftGQG1X#ryvn<7`Sf_x%2J;j) Fe*nkMVjBPe literal 0 HcmV?d00001 diff --git a/Code/Steiner/interfacesTheorie/bin/ITierBewegen.class b/Code/Steiner/interfacesTheorie/bin/ITierBewegen.class new file mode 100644 index 0000000000000000000000000000000000000000..55793a45a817518ce9a6025ffa2213919df2ecad GIT binary patch literal 129 zcmX^0Z`Z#6{~4SaIN2GP7#VmxLo!o~oKnkE(^K=<8CVz@1hNv#67_Qu^V0SGld@8i zOBfm0lOXbp49psuVT=r1!TF^{$*FFcIjM{cg2*Q5fi$x*G5}RFfB+-VKvo7e5Q~8w JNHQ^S005(V9)#GSW}COQ}Y-Zm^C!R7#X;N^Gl18Q{6IiQW+Vfuo|QXGJ}ng0jPxm U1Q>zlvNEuNSPbkyl8J!>0Pbofa{vGU literal 0 HcmV?d00001 diff --git a/Code/Steiner/interfacesTheorie/bin/Kuckuck.class b/Code/Steiner/interfacesTheorie/bin/Kuckuck.class new file mode 100644 index 0000000000000000000000000000000000000000..d29b882b36ddfca37a2755caa03918a25459e0ba GIT binary patch literal 691 zcmZvYO>fgc5Qg8)NBt4E2}uJK+Tu_m1*DQ=4?##(0D&;5QmPz!bIjmumx%s%hT{=NQlHJ_u8wuXX$_Br(?yfl;q%EQp7Kw#yK zR5E!hQ0%-M3Y7ZcH!@L#VWEr_fvO`FeNCq$iVodTKmv6q^xRKOXZU?P(xkA1A*GH`_t_PuJXHsUvWZH3k|HZa+oFpP3I;p!|p*ORWe8-a;H5V z4_R>uwS9_ar)lhsxy8qLqG3azk#o($Q*83UKQdCF7~WaX7vc$r{a!Y1nc|p~j%O_L zjw1WN(Dy)+&rN9~Iw2lH$8&-9y^2W2abizrm)?Ywy=#Bj|L7dO|8yu|4#G6@=!48& z%UU8|XKkVd9v9hH;vGLQTa8a$_JV!+)o_>FV6gyFrhrkxW8msbhFUsTT=Vu0fahX@Iy*jQe7yOisVPD>_C z;wsZ+qHELl|D@j*rXi@ If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there. + +## Dependency Management + +The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies). diff --git a/Code/Steiner/pruefung04-12-24(2)/bin/App.class b/Code/Steiner/pruefung04-12-24(2)/bin/App.class new file mode 100644 index 0000000000000000000000000000000000000000..6f595cd8c79550e462e8a4b2f96b5508bdbecb4a GIT binary patch literal 1603 zcmaJ>T~ix36g@JAT^1)8n~#t}vS~?c1F>7$rcDgA!3l|5Lr6@ZG!GfstJsUzTFgwp~=-wm!^XA3hZ{H%1T>}w@ zfm_X{fha?KpFiVSkIQQIetBP16vNQ6D_ylppj3K?A)5CcVPOEnF$`jeVYKKr zMX=4wo?u86{R;PXc;M=B*BMncH)I$r(pEVN)8MXTm`pt`9&cGvfh(&yy^VF}hl*$_ z*O#Gz1Vi!|bu?pOoER5*S$M*ENMwn&CrnH-oZAqtw8>XfqEfez#05=vnqfLsps(Mi z!*~y~24+rVp>z-`(TL#^E>i~l7A0h&v)J{sTSQk8X~7#g6IbXs?{>UakWc-f!Sw-z zwD1A08kl=`jFU@a_z)j47)>3`qohov`q9&eNXIab1;SQ^(mODWr_yJ^Cay7DwO;)! z9T5oIafN+15b{SMZAXMhX$do#jEX@N_?%&? z!RsRL%L-S!uBwq0Qpy#fCkfq$hYtQl3}4~~gIV#VqMBvMPP5WWL?>w zE2_$N8%OjqCRP~IrxCmrh9anOuYBq-Bq|@Mc%QR>^M#6|wGWiJPS2jFu#cWzF|hr~=;H5US=op@nZyH1I9M+_7j~ z`OL42Y)9dp9Io?<@`D4N+zp0bdyC#hcLLty((yz%SM>dQtC>4n?jFyHh1&;B(Ffj} zoz5lC_13N%BF{aq?`H1CJOk{Xdl6q)sky1#~G%p+JNzdXA_yXq2U%Q9n5U9OfVGX^UDt z4MZ_QZL9;J{v3^laUP=-B;KB97;A_5m)aMxPpi(B#WxD#JWOgzU_@lRY#*oSzZ z`h`QJI#yzl`i1yXe0dD7^InLWhy-*8?Bxk--SF`~_7 zGBw!&XtLMa#OU#((M6&>M-&%{cJX0B$%~ z!ZO43KHn1+D;uG7GtDy2gm z@Pp?KJ-s`63-=k8`x-H*Gz$+I7XA;Vz3KJ=i?j_% znmI$l>?vsp5(~p*86i!_R<}4iH$Rp73cHw1f5zCy2$`Y(c=X;T^e8fL;F4`4isa%F z%szo^w0IQJXta1y4%aMR^wu?thg9S>9MXimifqiF7TtlF;wOxem~)O~fh2c^>%a$k tnV{UixnwAdOA*ZpVr25p#9WeCiO@HZr_)rqMpD9Ey4j@N!vj1*_7_~90Q&#{ literal 0 HcmV?d00001 diff --git a/Code/Steiner/pruefung04-12-24(2)/src/App.class b/Code/Steiner/pruefung04-12-24(2)/src/App.class new file mode 100644 index 0000000000000000000000000000000000000000..f362369e0bd8ffa443aae6fbd1d4b5086196539e GIT binary patch literal 1423 zcmaJ>-%}G;6#i}q?6NGdM8RKR*NSZ-7!<8l11LmM+F%*u=%`OO*()sB+?(0GaY~;$ z_0>N>UwrLz`+zgH({c2r(?6qsh|_aPgdmyjO!k~T_dDM?_dECIpO0_<0`M(X9e5bG zFk$1QgA~5#hmTV>zI1RJlO}S;##hFEouPy&<4xN*XCrT6#=?1qzPV6_dV!%Qn|r{J zE~-E<43|PF?l$Wc5#Q&Ph$87a4<*A`_DN}zKjSkIm+LcS9fxwgU=jz*npbP9ywS!x zw|=aOh7OfXEL>o4%BmSx#d2uK?8QbSZ)jYMAj9C5ctu1axF@QbcnxH5RfN)~z=jsp zn!(Llxai^%zM(EY#m}wCrz);h`6_QFiHJ9NRM}sYZfn zo!C{As771(P|d8-oHR{K@Ot4>iTz;)t6@M94S6)%y^ysov=N-)a5i@k!qA@xy`-8l zNQiEy9 zLlf^9@pdh4SC!OsND0$xFpn+VGNW5znB3Del+RR6v`=oUz%s9D6>nMio~}blsalgJ zy+H#GKfSn*-9)Nl%*rGFY*3XLv(?6-mlh~D0FVOO;O}g zR1UQ$SST@^Ik3NOy)m5pe;iI>nEp`AlL9kWlir8uYl18z+k5s6*l*;}37~i1PB4vr zjAD#Z4D=l=q{-I)K)AHjbHaT+>i$r=eN6W2&&w?f}EB>##C%Bo2O$*T0l zvwpWOf&*Un$YQmGuJ~^i!=js?_GPeZsvk7OzBK4`mDhzQnlD8|QxcxoHVHX!kab{V z&cQWoIJj<9&ZtdnFr*$Sr9&O?-czC5su?EZxRJn32QKn-{4XgLI;@i)>*84?N_AMD zsfL}9R7eI4v18fPZE8bX$W~k1DBu=@JLKHUGW&%JrIyOy%erhU%kuW);K#e~U&2t( z=?P<4>hg{#E5E_@YpL6`3aK_7G8EkDhL{$g(2l!{A|x{;QIZ%* m{1g`O;fyCfL?(&NytxQ2p*ZAaxQ#p5Mh45YPY`N_Wc4=(y6t=b literal 0 HcmV?d00001 diff --git a/Code/Steiner/pruefung04-12-24(2)/src/LabeledRectangle.java b/Code/Steiner/pruefung04-12-24(2)/src/LabeledRectangle.java new file mode 100644 index 0000000..b578316 --- /dev/null +++ b/Code/Steiner/pruefung04-12-24(2)/src/LabeledRectangle.java @@ -0,0 +1,18 @@ +//Luca Fbian Burger +// Aufgabe 5 + +import java.awt.Rectangle; + +public class LabeledRectangle extends Rectangle { + private String label; + + LabeledRectangle(int x, int y, int width, int height, String label) { + super(x, y, width, height); + this.label = label; + } + + public String getInfo() { + return "Label: " + this.label + "\nPosition: (" + this.x + ", " + this.y + ")" + "\nGrösse: " + this.width + "x" + + this.height; + } +} diff --git a/Code/Steiner/pruefung04-12-24/.vscode/settings.json b/Code/Steiner/pruefung04-12-24/.vscode/settings.json new file mode 100644 index 0000000..e112a70 --- /dev/null +++ b/Code/Steiner/pruefung04-12-24/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "java.project.sourcePaths": ["src"], + "java.project.outputPath": "bin", + "java.project.referencedLibraries": [ + "lib/**/*.jar" + ] +} diff --git a/Code/Steiner/pruefung04-12-24/README.md b/Code/Steiner/pruefung04-12-24/README.md new file mode 100644 index 0000000..7c03a53 --- /dev/null +++ b/Code/Steiner/pruefung04-12-24/README.md @@ -0,0 +1,18 @@ +## Getting Started + +Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code. + +## Folder Structure + +The workspace contains two folders by default, where: + +- `src`: the folder to maintain sources +- `lib`: the folder to maintain dependencies + +Meanwhile, the compiled output files will be generated in the `bin` folder by default. + +> If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there. + +## Dependency Management + +The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies). diff --git a/Code/Steiner/pruefung04-12-24/bin/App.class b/Code/Steiner/pruefung04-12-24/bin/App.class new file mode 100644 index 0000000000000000000000000000000000000000..e22e395adf8dc49576c095951ad09b073de0a96e GIT binary patch literal 949 zcma))>rN9v6vzKl3cD;T;1=*!aq)s}!4~iaa+9keu9pO9Li{weV>`H=*1Z_vWqby| zltdCAz=smgEJ9=CgH1X!=bYK||DAK@=dbTSPEN3fRRbx8u9a5HK$>B2pMT~hpQ~Ew z&ECGKL<~I(QpsqEF6HuNhV)vqDlBxN*G4yb7zRA4#Ot`RCxUl;&le1i*Q{{A%mb44KZY^N4{V5?kky zP+W2UAQW%?xF(f}5eA$5d_}ttMPTA8@lO}0Ok8K^dl{>$P*we*g$%N~lA8>3xqn&y z$CED`xW!=ZY@O+kF&LX%RStHxOx#JNr%l`=+SNFUs3w=IsvG*UDgq0m$ZCw7jl6EC zEmatC-MShrR2+6W!lD! zRJKLGw%Vphi>8 zTrfon5-+EGUV`@5i0B2RVo4OM)Q-AFcN31==r>)r)=%P?EtU&Tu(N^OaKS^oz&H>^j5F73bO! zZg|HS-E~~&wsZFgHlcbdECZRed@>;a0<~+$+INsl08l^ s1%fCN#tcEs62<~yXhio^9M3RMRzFp>fJMU2Qr$~fPHKKmkrY;b0}h7H8vpvB{9CIcmoY~tyxk^yyx8sChoYsb#d{3dx+TS? z-`f@LHs7_0m|Wdyal6S~OYb9NN_8!dVY+^L62wnR@?H=bfQ+-pVC)OmvmBbrSZqiP z8SZ-ze9?7<)Myt>T);(!5lab|E5~KXFUDuI9@(p7SVYM{k&qs9a&&5S&=3*ifZ!yhEQFn?PXBMrhyHHh2uF`a^Kk# z(X|WtTjMQK!ax&yo8gCeqmg%*@D`VCTX+j~$Jz7y)#u*G6M@@uEb1H ziW;}=2FbOWP2=+s+@TvCr=alQ&!=vI6~3|DcA-r?bvuGgT~{rSV4Gn+Mr9!&J~;2F zYXwFx+Paj&t=Zi3glAxf;le4ZhBa^CF2lL!yOIJzrf{AnnXTUcsxhqhvUT*QkJA6=;yaycMDp@~b`0?;>4JJv2kHBOxg9++3OCWLqn0!#K9D$i3h_wLBO^TUB;*fAB z4FX`$J)&TSPp}%{xkI5EYhL3i>)t~QYXOF19>xRIGel#aGR(%x=Ktd$k57ZLN!+50 d39REY`j69Ui>iGQd>ikcLWT|&l)}B=L0)urVJYTwsNH(RC`Z>c&W-xGYCtD%nqFWO&jKH=L z#RS7hCR-T;!=#N-M9l1x4GR(4DM=-E+Rc68?eTr5Bgd_Br@}pH*4@ppZb+XYS_&#M z0_#HWbo8e(*+Cf$F$$>sDZ-Y@*W7WW@Prz}9Of-tyI@NB*w>X$LEZkz4>Rijk z>^3sUQt>S#$f4Vr9+JmgLA)mVOC~#b+kf8{4XU3OWw-5B#kMqtj|ZNvn{;H!mg{O? zd%X2Z=!RSKW4MER7Va`E_4-7rBll3`gLVlF*ydI3ddJ3@`wSoZb#UclrfEe4 zoiwa7Gl@c!;4)^qY4S9hv(emF#6Qs_AU9e-l!nj_0=k3@SB8QUe}j`l!LyhkI#b{l z=`=}FUvSkVr!R4eH1G{ey((iQ2&8w4lJ>-;&c)=;`Bo{;@Ub2^sA8@U$O0h!J+2ZE eBw>wyL%5A~8lyz;fWC)#Osg2pHt-ainEef^>onp3 literal 0 HcmV?d00001 diff --git a/Code/Steiner/pruefung04-12-24/bin/UIPlugin.class b/Code/Steiner/pruefung04-12-24/bin/UIPlugin.class new file mode 100644 index 0000000000000000000000000000000000000000..f99fc627ed861c64b9722a73dcd6d4dd99b7d4ab GIT binary patch literal 1295 zcma)5+foxj5IvJbHVK;mfq;0yfPf@i;$0yW52m1`Dk>HiAM|BNhGbzgo7$a)!Y}bR zw7gVNmM^~fQDRRvKr|_fm)Y)~?mm6a_Wb&N^5gUrMJyW#F+{i5H*CLZNdpmvp1@{^ z`PQl}>Ov}pRB4|d^1RJuHNUA`OI8b%xok;GtuQRkbY5R3lHFm56rGBQBaB`X226%K zmui;XiGd+$;tF~g`bw4*Fa7$iaJTrbE%d-nncF+uwY1*~MpVu67~-Wf!bBn>d7bi& zL*aUsBk7j=-kvXNt{^8oqk*pCnt@S<{x%VgJtgWUuHyz}IX-EW4k%kreuD&3B$MFv zLJGi`iCf4pjMVvoC_1vt)f-FI$nq4Iibk65LORps7K$OH7oV&!*#@F?#>jg|euTbeZg%b);<@=RNPHwegg!cx&Dto{#n6j5`YDzR z@-YCts8oqTx@S#mh^$c4(pVZPjo}v33f<_e{!bXmeMaI0H-WDhzd(yOYZHW=Y$BOK zehZ1-Ii_2^UQ?#VN#|y1-t&et|1=E7A0Xl>4AGc+{NbSReEf7%7A;biZbL+GmcB`{ V?h)Ai=J^nhDHbRH2^LYn=pXZLHmv{v literal 0 HcmV?d00001 diff --git a/Code/Steiner/pruefung04-12-24/src/App.class b/Code/Steiner/pruefung04-12-24/src/App.class new file mode 100644 index 0000000000000000000000000000000000000000..c77e64a2db79af721fd97545929b391e6d5154f8 GIT binary patch literal 780 zcma)4$!-%t5Pj`!I^!V;ot52T3Er@i03i_pDUbw3m_-Ufia53H#_lj~n^_RfUvaS| zBJlxy6ry?ridtc-vB(ori(cg94v8M=eWUf(?trmtXbx`ZGF+2 zl7liwg`>)G$3@xPbROD5clUEk4IUxK2K{+9!)EbsY5oVX@_E{Xk@S770%c|HYI735 zk5xyRM5~Xn@~x6{|LBp(Pg+oVH>u{*3}hH8gC)$;%GfUjV#Na4MLJy}&&X%XW3Vq2 zFkB#;OF)JRT*M_Rv8h93ktYA>6saST78#KpBiE>m;8X-3VS*y}6!|0JiF0CdjHwsZ z5vJ)sUln4685^CoD8nVPG$xUOAnHYGdKt8^pv|PlYjnRs3%Ui5a8MRYroBpW3fF!D DzIdkz literal 0 HcmV?d00001 diff --git a/Code/Steiner/pruefung04-12-24/src/App.java b/Code/Steiner/pruefung04-12-24/src/App.java new file mode 100644 index 0000000..0f70c9b --- /dev/null +++ b/Code/Steiner/pruefung04-12-24/src/App.java @@ -0,0 +1,17 @@ +// Luca Fbaian Burger +// Aufgabe 4 + +public class App { + public static void main(String[] args) throws Exception { + DatenanalysePlugin data = new DatenanalysePlugin("DataAnalyzer", "1.0", "Kundendaten"); + UIPlugin ui = new UIPlugin("FancyUI", "1.1", "Buttons and slider"); + + data.installieren(); + data.hinzufuegenDatenquelle("Einkausdaten"); + data.ausfuehren(); + ui.installieren(); + ui.ausfuehren(); + ui.anpassen("Graphen und Digramme"); + ui.ausfuehren(); + } +} diff --git a/Code/Steiner/pruefung04-12-24/src/DatenanalysePlugin.class b/Code/Steiner/pruefung04-12-24/src/DatenanalysePlugin.class new file mode 100644 index 0000000000000000000000000000000000000000..8b81eaa0b3866b1fcc0ee0349a47befc3a42b3d4 GIT binary patch literal 1588 zcma)6U31e$6g_LZk*$b04M`}3fT4jTc8H-+C^&?IX&|i=0%l;^zI0|vrIL%)zu(>Y0+kD+2i^&83ULcyDmY$r^*gaLnYa1)P6+#T0VHj`P z@|S>c4I!^~v!!JFXwn>J)eXFwSh97DeW44N+-dt_%?TQ|oYyt7FpAF^_V%flKH6_# z7#~|Wi*pvfzDK-104}F-#X=cZ z4SZ!`36p7DV;JexMdj`Yq|>gfWhFeWT#sS8Prki9&=pAXdi_83xv_p<)KqEqJBGCV zFXi}5d>VE_QR9s!_gBTwD(nmSq-6Lrx`Pk1k2rT%r0pxQNp5aH&e1&DZgGufO3`Eq zzF9JH9m@=bcnNa%Uj6#=FE7V(KiOVASEmj(8zM9|JvC2_+~gag?8+KfcWu?Aov*l5 zKEv@ob&1l7HHnhyG<&xgO0}h>IW&TkvGK}{s0%q};A`E+RfehV0NC<@yCI@0 z(^0p?Yt*i`fi-Gq#dSA=7TwcjDTP;dxbF*+{4g##;^<7wbuR0U@TWSCrQZI=EV~?U zw_BnQ{QDSwX9i-Xh@#9Lr%Gc{GH{dOSWkZav@sm|e;kg`qn4$2i_w!tw~4;`6-!_* zlC&Si7_H-ExkUdd`cC8vb5FqX&ye``36hVI%KwSfi7k9|_xF%yAFU%H)WiS`q8!8l zSVZ#)_D5ttP=F-i3fgyzI#75DgW(Yl(k9LD0-2RRV9srmFScO)_Wq3~PoPVlrH6MI z(?p-Aa0lpg5Q%q48<==YNiiJ6WEAZzIVK1&uA>#SQsORbV^7H4RXr4H8bgK>9-~l6 f914RT#tMB+V*3U+P@yae^gl$Lb7VUauBZM16yKp4 literal 0 HcmV?d00001 diff --git a/Code/Steiner/pruefung04-12-24/src/DatenanalysePlugin.java b/Code/Steiner/pruefung04-12-24/src/DatenanalysePlugin.java new file mode 100644 index 0000000..f6b7276 --- /dev/null +++ b/Code/Steiner/pruefung04-12-24/src/DatenanalysePlugin.java @@ -0,0 +1,24 @@ +// Luca Fbaian Burger +// Aufgabe 5 + +import java.util.ArrayList; + +public class DatenanalysePlugin extends Plugin { + private ArrayList datenquellen = new ArrayList(); + + public DatenanalysePlugin(String name, String version, String datenquelle) { + super(name, version); + datenquellen.add(datenquelle); + } + + public void ausfuehren() { + for (String string : datenquellen) { + System.out.println("Datenanalyse für " + string + " wird durchgeführt."); + } + } + + public void hinzufuegenDatenquelle(String neueDatenquelle) { + datenquellen.add(neueDatenquelle); + System.out.println("Datenquelle hinzugefügt: " + neueDatenquelle); + } +} diff --git a/Code/Steiner/pruefung04-12-24/src/Plugin.class b/Code/Steiner/pruefung04-12-24/src/Plugin.class new file mode 100644 index 0000000000000000000000000000000000000000..39f2b5a80bf03c23c581c90b4d1370a100b2ac89 GIT binary patch literal 1234 zcma)6-A)rh7(GKvw=64YDIy|R6r?RkQT#z`ys!z;1d*f!FT7gXu`FzNo84IqZ{lO9 z5ly)80emRq8Me~aHpYvc+4=T-XU=!#oBjFg><56ycxobz=@A&Xu7{Zs+`w#xpXN>6 z!fgW!1{MX9p52rJnXN&QS-NFuMf$Lg{- zY}!%yK9UFL7_;g}K}~KtdbiOXH)=TEsxHrhg{*}Um=;E18n|O&33-9bFMMBxDzICx zr8@BI;dly#G>R6Mv0~t^g;kX3Ld->c$E-K|hq9)6Le-N{$tJb>5kE}EB|3g-hqfx3 zEA3|4#2W4i%!*vQ(wxYBaDsZSQA@ z8B|<53?;>X?B1cx5j+3V_Uf(-7vjWnzx=L9PvY)LOAdg)>%zxJRqpP&HbsRER&|st z8+anH*jL{mZ31)u#wF)@?b5t(LrChL<6Ba<9p@Bi2`+IQ<7%CV1n2SMcZlNhDTazG zr$~Hei1&wMhKV4RrqM)Wq+!S5N}FJovmj!)_!UE+F4FWaAegs%AT;qeG(+eFvK+On zHHy*%*)K?HVm^s83S!}59=OW9DWWGYvZoo<*`foD^~@v%;aPr4Fh#p_4G%e+ Tgs=0z^#IeD<2udtO+LBb*M%fb literal 0 HcmV?d00001 diff --git a/Code/Steiner/pruefung04-12-24/src/Plugin.java b/Code/Steiner/pruefung04-12-24/src/Plugin.java new file mode 100644 index 0000000..65f58af --- /dev/null +++ b/Code/Steiner/pruefung04-12-24/src/Plugin.java @@ -0,0 +1,31 @@ +// Luca Fbaian Burger +// Aufgabe 5 + +public abstract class Plugin { + protected String name; + protected String version; + + public Plugin(String name, String version) { + this.name = name; + this.version = version; + } + + public String getName() { + return name; + } + + public String getVersion() { + return version; + } + + public void installieren() { + System.out.println(this.name + " Version " + version + " wird installiert."); + } + + public void deinstallieren() { + // Logik + } + + public abstract void ausfuehren(); + +} diff --git a/Code/Steiner/pruefung04-12-24/src/UIPlugin.class b/Code/Steiner/pruefung04-12-24/src/UIPlugin.class new file mode 100644 index 0000000000000000000000000000000000000000..b09172f71351afc9e01c09c22e9da5b5567e49d4 GIT binary patch literal 1145 zcma)5TTc@~6#k}#Zo4eB7Asy5ipbj`SttgJAgH;nTR44gMmviOyP2pywfJG zV?DBnHaJXz1s>-uvv&ay6Y)e}`VR*PWc>F(}>??+m zlG_jr@ro_Qi=bT--WIPphZ7 z{LZpqFglu(LvkmH3EjQW@~iaQfN%{Iv`Y7g=4o@b+;{iH@e}D$+TeBNdWQy9Nx6#a z?gbqNt1PAPN{+rw;`zRx=W&hRg*@Z3;Rrv|ODqm@@AI5V+&b)tA>nWO;$PNwMO_v9 z1vxHJ;*L`#)r$rmFw70~H;fy@%)jF>OA{BRSz`$4S4dWv>@irhj?-?5_9OJSa`~mN zV7cYb2z}_rPtZC+r@$y8^o>y^ni(WcGDBnmiH`{9J|T3Z>wLlJX|_q2Aj~-BGF*V3 zbd9-6etnY4 If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there. + +## Dependency Management + +The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies). diff --git a/Code/Steiner/samsung(Interfaces-task)/bin/App.class b/Code/Steiner/samsung(Interfaces-task)/bin/App.class new file mode 100644 index 0000000000000000000000000000000000000000..a4a8aa57b753e0c853fe9095b986371192285df5 GIT binary patch literal 1585 zcmZuxTUQ%Z6#foPm?R7q6QEuzimoOtG*((gg9wGv(uRu-riFStNlwVXWF}4~6<&Px z)hAc$i+%H1+XbubTCV!)5AkOhzcaZ&T%3n9=X`sgefjp@^Y_2c{%kg}fVzP`fm8Ff znt_nO(2l$>)3$WB(`$ttRrCe=XDr9^XQ`A-(6R13=6 zkOf-_#ItTu+Ii_&`rZaZe#NQ_gtK&&p_!_*9D&i~z3h?8obOrAc1F92UE3?Fns2!d zBa90qjkX%_{K7_Q;Efu&9zdmov&fn^3z z({^mOODMUR%4euBdnNTRxP({{PgGzADwwS8)wn~IeedGs8K%|kM9;WnRtS^11z>qHxIBn@fXG)Vn_ooF#ZIe6XPYm(URpK;w%OE zr?@N7I^63Vz80Y70VF*X1%7Eh&>4oHGrSsP5JrT#zRKt)nAt2PH<;Lch`Rn_Siwhj$xrYox?nngU)BNpA4_OAUFJ^I~CmuFv zt22;+JTaPK0t{ID9C?e(7%VyS2Rm|XbS2|h@>tQ5aleK9hjLdOzY6tVs5w6@#nnQCg zqxYn8t=<^saRawJ++^7LYjz%6IV<2c?$DG;EJN)QrA+e!d9dU}idid%dkoc;6s}?( zTM=0@>Ei)*JaC4}g8T2m0v_U#lj2wbNvYMZN_EfV%lKVDI2qU+o-!2Mo!$}u69^%6 zl$=PNLxbUDEgG$@CF^) zq>2-O#!y6wva7amogl6%qq4wPQCnhP(P_7r|AOuE-LJU+KR8bc`~|phIk*HfJWhu^ bNr4mzQc8vFrbFr}kP1PnsgOM~kioOxLl>YX literal 0 HcmV?d00001 diff --git a/Code/Steiner/samsung(Interfaces-task)/bin/GalaxyS5.class b/Code/Steiner/samsung(Interfaces-task)/bin/GalaxyS5.class new file mode 100644 index 0000000000000000000000000000000000000000..7b73a985ac808e0ae9a4aeb0d215ebd7f1943636 GIT binary patch literal 927 zcmZuvTW=CU6#jpa_{rT(rkIPFO;)R72gMB1i@p0DOvyfr1x?&o}dTb#_ zspFn><;c?v*^vkalA+Z8AkIb86?)w4MuF1feTLjCrB!smP_4GE=dVXST40vt|kx7 zk>OjH;G`Sbs57jzjyp&Ek0A)5gLovhjRwO($K#%s{6e`d_to%>$3AcHQ0bxMGcV>7 zaW1*`C^FW<5==OLS+a~=-a z8|1wwKTCVDzSH=ILVYXq1*@MZkit6I6)Fc^$kAusw?tl@N~i!E*reT@%Bai zrlL3}GgP;*wWNAUn5K>VXWTCFuXy;E#-S9bADc)FMPYGqNkPACGDs}}WQ{=96G5IO TgFH_FDHBK~5oDLTOQHE2mjAO^ literal 0 HcmV?d00001 diff --git a/Code/Steiner/samsung(Interfaces-task)/bin/ITelefon.class b/Code/Steiner/samsung(Interfaces-task)/bin/ITelefon.class new file mode 100644 index 0000000000000000000000000000000000000000..e5a3d8b5644d034a68b368fe15bd2c1b5703818a GIT binary patch literal 160 zcmX^0Z`Z#6{~4SaxY-$)7#TP`LsD~6)AIA!8CVz@1hNv#67_Qu^V0SGld@8iOBfm0 z3-ZfTi~RE#8JIOR!x$O3Qj5KFGV{_?b3l@bc}1mZsX$4t;QZ2}`1IR9RD9r()fhstGBohM{00@*K!~g&Q literal 0 HcmV?d00001 diff --git a/Code/Steiner/samsung(Interfaces-task)/bin/Samsung.class b/Code/Steiner/samsung(Interfaces-task)/bin/Samsung.class new file mode 100644 index 0000000000000000000000000000000000000000..a6a8e9278e78bea453caf82f88e6c78bf759fa7f GIT binary patch literal 395 zcmZWkyH3ME5S;as7!yN)03B2$ksu!cqDe$$L6ImD<=Huz3yvK*HWHsj5g}3V0elo; z&$2{8adSKSn%VE4&#&zkBb>P~2<}8I*HxCdun7AL@hXO?$dch>w2*O0uvdjtYXXf4 z-m1vw)k`^jTM;_pU-P6aRF>QjoLiNt@{Z8$jsMsCGlDhB=hB0TJs&N!31+W9Yk{?W z*l={z@!?{J5QHj|57jb~#Z*M8)S7uL(wQif=1tNnpS8hO*j&Okyh&aavAkD$$Zzu3 z+OKuN0ww^1AL}tft1W%k5f7XQKE1ODK0!@<=C2k)FRaLCxH%QmCKV=mgf c devices = new ArrayList(); + devices.add(new GalaxyJ3(11.85, "Phone")); + devices.add(new GalaxyS5(12.45, "phone", "sunset-black")); + + for (Samsung samsung : devices) { + System.out.println(samsung.preis); + System.out.println(samsung.produktTyp); + if (samsung instanceof GalaxyS5) { + System.out.println(((GalaxyS5) samsung).farbe); + } + System.out.println("Funktionstest"); + if (samsung instanceof ITelefon) { + ((ITelefon) samsung).powerOn(); + ((ITelefon) samsung).esKlingelt(); + ((ITelefon) samsung).anrufen(); + } + System.out.println(); + } + } +} diff --git a/Code/Steiner/samsung(Interfaces-task)/src/GalaxyJ3.java b/Code/Steiner/samsung(Interfaces-task)/src/GalaxyJ3.java new file mode 100644 index 0000000..f2623e5 --- /dev/null +++ b/Code/Steiner/samsung(Interfaces-task)/src/GalaxyJ3.java @@ -0,0 +1,22 @@ +public class GalaxyJ3 extends Samsung implements ITelefon { + + public GalaxyJ3(double preis, String produktTyp) { + super(preis, produktTyp); + } + + @Override + public void powerOn() { + System.out.println("GalaxyJ3 is starting"); + } + + @Override + public void esKlingelt() { + System.out.println("DING DING DING"); + } + + @Override + public void anrufen() { + System.out.println("No one will pick up - since you have no signal in the basement"); + } + +} diff --git a/Code/Steiner/samsung(Interfaces-task)/src/GalaxyS5.java b/Code/Steiner/samsung(Interfaces-task)/src/GalaxyS5.java new file mode 100644 index 0000000..70fc66a --- /dev/null +++ b/Code/Steiner/samsung(Interfaces-task)/src/GalaxyS5.java @@ -0,0 +1,23 @@ +public class GalaxyS5 extends Samsung implements ITelefon { + String farbe; + + public GalaxyS5(double preis, String produktTyp, String farbe) { + super(preis, produktTyp); + this.farbe = farbe; + } + + @Override + public void powerOn() { + System.out.println("GalaxyJ5 is starting"); + } + + @Override + public void esKlingelt() { + System.out.println("DING DING DING"); + } + + @Override + public void anrufen() { + System.out.println("No one will pick up - since you have no signal in the basement"); + } +} diff --git a/Code/Steiner/samsung(Interfaces-task)/src/ITelefon.java b/Code/Steiner/samsung(Interfaces-task)/src/ITelefon.java new file mode 100644 index 0000000..fe979d9 --- /dev/null +++ b/Code/Steiner/samsung(Interfaces-task)/src/ITelefon.java @@ -0,0 +1,7 @@ +public interface ITelefon { + public void powerOn(); + + public void esKlingelt(); + + public void anrufen(); +} diff --git a/Code/Steiner/samsung(Interfaces-task)/src/Samsung.java b/Code/Steiner/samsung(Interfaces-task)/src/Samsung.java new file mode 100644 index 0000000..5a15e61 --- /dev/null +++ b/Code/Steiner/samsung(Interfaces-task)/src/Samsung.java @@ -0,0 +1,9 @@ +public abstract class Samsung { + double preis; + String produktTyp; + + public Samsung(double preis, String produktTyp) { + this.preis = preis; + this.produktTyp = produktTyp; + } +} diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/pom.xml b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/pom.xml new file mode 100644 index 0000000..0ecad96 --- /dev/null +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/pom.xml @@ -0,0 +1,51 @@ + + 4.0.0 + com.example + _javafx_website_task + 1.0-SNAPSHOT + + UTF-8 + 11 + 11 + + + + org.openjfx + javafx-controls + 13 + + + org.openjfx + javafx-fxml + 13 + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.0 + + 11 + + + + org.openjfx + javafx-maven-plugin + 0.0.6 + + + + + default-cli + + com.example.App + + + + + + + diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/App.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/App.java new file mode 100644 index 0000000..0a8c8fe --- /dev/null +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/App.java @@ -0,0 +1,38 @@ +package com.example; + +import javafx.application.Application; +import javafx.fxml.FXMLLoader; +import javafx.scene.Parent; +import javafx.scene.Scene; +import javafx.stage.Stage; + +import java.io.IOException; + +/** + * JavaFX App + */ +public class App extends Application { + + private static Scene scene; + + @Override + public void start(Stage stage) throws IOException { + scene = new Scene(loadFXML("shop"), 640, 480); + stage.setScene(scene); + stage.show(); + } + + static void setRoot(String fxml) throws IOException { + scene.setRoot(loadFXML(fxml)); + } + + private static Parent loadFXML(String fxml) throws IOException { + FXMLLoader fxmlLoader = new FXMLLoader(App.class.getResource(fxml + ".fxml")); + return fxmlLoader.load(); + } + + public static void main(String[] args) { + launch(); + } + +} \ No newline at end of file diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/PrimaryController.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/PrimaryController.java new file mode 100644 index 0000000..b058b06 --- /dev/null +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/PrimaryController.java @@ -0,0 +1,77 @@ +package com.example; + +import javafx.collections.FXCollections; +import javafx.collections.ObservableList; +import javafx.fxml.FXML; +import javafx.scene.control.ListCell; +import javafx.scene.control.ListView; +import javafx.scene.layout.HBox; +import javafx.scene.text.Text; + +public class PrimaryController { + + @FXML + private ListView cartList; + + @FXML + public void initialize() { + // Sample data + ObservableList items = FXCollections.observableArrayList( + new Item("Book 1", "Fantasy adventure novel", 3, 19.99), + new Item("Book 2", "Science fiction thriller", 1, 25.50)); + + cartList.setItems(items); + + // Custom cell factory to display items + cartList.setCellFactory(param -> new ListCell() { + @Override + protected void updateItem(Item item, boolean empty) { + super.updateItem(item, empty); + if (empty || item == null) { + setText(null); + } else { + // Create a custom layout for each item + HBox hbox = new HBox(); + Text titleText = new Text(item.getTitle()); + Text descText = new Text(item.getDescription()); + Text quantityText = new Text("Quantity: " + item.getQuantity()); + Text priceText = new Text("Price: $" + item.getPrice()); + + hbox.getChildren().addAll(titleText, descText, quantityText, priceText); + setGraphic(hbox); + } + } + }); + } + + // Item class to hold data + public static class Item { + private String title; + private String description; + private int quantity; + private double price; + + public Item(String title, String description, int quantity, double price) { + this.title = title; + this.description = description; + this.quantity = quantity; + this.price = price; + } + + public String getTitle() { + return title; + } + + public String getDescription() { + return description; + } + + public int getQuantity() { + return quantity; + } + + public double getPrice() { + return price; + } + } +} diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/SecondaryController.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/SecondaryController.java new file mode 100644 index 0000000..4cbf23d --- /dev/null +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/SecondaryController.java @@ -0,0 +1,12 @@ +package com.example; + +import java.io.IOException; +import javafx.fxml.FXML; + +public class SecondaryController { + + @FXML + private void switchToPrimary() throws IOException { + App.setRoot("primary"); + } +} \ No newline at end of file diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/module-info.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/module-info.java new file mode 100644 index 0000000..aab90f4 --- /dev/null +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/module-info.java @@ -0,0 +1,7 @@ +module com.example { + requires javafx.controls; + requires javafx.fxml; + + opens com.example to javafx.fxml; + exports com.example; +} diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/cart.fxml b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/cart.fxml new file mode 100644 index 0000000..9ae8218 --- /dev/null +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/cart.fxml @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + +