diff --git a/Code/16.01.24 PrüfungJava/.vscode/settings.json b/Code/Steiner/16.01.24 PrüfungJava/.vscode/settings.json similarity index 100% rename from Code/16.01.24 PrüfungJava/.vscode/settings.json rename to Code/Steiner/16.01.24 PrüfungJava/.vscode/settings.json diff --git a/Code/16.01.24 PrüfungJava/README.md b/Code/Steiner/16.01.24 PrüfungJava/README.md similarity index 100% rename from Code/16.01.24 PrüfungJava/README.md rename to Code/Steiner/16.01.24 PrüfungJava/README.md diff --git a/Code/16.01.24 PrüfungJava/bin/App.class b/Code/Steiner/16.01.24 PrüfungJava/bin/App.class similarity index 100% rename from Code/16.01.24 PrüfungJava/bin/App.class rename to Code/Steiner/16.01.24 PrüfungJava/bin/App.class diff --git a/Code/16.01.24 PrüfungJava/src/App.java b/Code/Steiner/16.01.24 PrüfungJava/src/App.java similarity index 100% rename from Code/16.01.24 PrüfungJava/src/App.java rename to Code/Steiner/16.01.24 PrüfungJava/src/App.java diff --git a/Code/2dArrays/.vscode/settings.json b/Code/Steiner/2dArrays/.vscode/settings.json similarity index 100% rename from Code/2dArrays/.vscode/settings.json rename to Code/Steiner/2dArrays/.vscode/settings.json diff --git a/Code/2dArrays/README.md b/Code/Steiner/2dArrays/README.md similarity index 100% rename from Code/2dArrays/README.md rename to Code/Steiner/2dArrays/README.md diff --git a/Code/2dArrays/bin/App.class b/Code/Steiner/2dArrays/bin/App.class similarity index 100% rename from Code/2dArrays/bin/App.class rename to Code/Steiner/2dArrays/bin/App.class diff --git a/Code/2dArrays/src/App.class b/Code/Steiner/2dArrays/src/App.class similarity index 100% rename from Code/2dArrays/src/App.class rename to Code/Steiner/2dArrays/src/App.class diff --git a/Code/2dArrays/src/App.java b/Code/Steiner/2dArrays/src/App.java similarity index 100% rename from Code/2dArrays/src/App.java rename to Code/Steiner/2dArrays/src/App.java diff --git a/Code/30.8.23/.vscode/settings.json b/Code/Steiner/30.8.23/.vscode/settings.json similarity index 100% rename from Code/30.8.23/.vscode/settings.json rename to Code/Steiner/30.8.23/.vscode/settings.json diff --git a/Code/30.8.23/README.md b/Code/Steiner/30.8.23/README.md similarity index 100% rename from Code/30.8.23/README.md rename to Code/Steiner/30.8.23/README.md diff --git a/Code/30.8.23/bin/App.class b/Code/Steiner/30.8.23/bin/App.class similarity index 100% rename from Code/30.8.23/bin/App.class rename to Code/Steiner/30.8.23/bin/App.class diff --git a/Code/30.8.23/src/App.java b/Code/Steiner/30.8.23/src/App.java similarity index 100% rename from Code/30.8.23/src/App.java rename to Code/Steiner/30.8.23/src/App.java diff --git a/Code/5.12.23-JavaExam3/.vscode/settings.json b/Code/Steiner/5.12.23-JavaExam3/.vscode/settings.json similarity index 100% rename from Code/5.12.23-JavaExam3/.vscode/settings.json rename to Code/Steiner/5.12.23-JavaExam3/.vscode/settings.json diff --git a/Code/5.12.23-JavaExam3/README.md b/Code/Steiner/5.12.23-JavaExam3/README.md similarity index 100% rename from Code/5.12.23-JavaExam3/README.md rename to Code/Steiner/5.12.23-JavaExam3/README.md diff --git a/Code/5.12.23-JavaExam3/bin/App.class b/Code/Steiner/5.12.23-JavaExam3/bin/App.class similarity index 100% rename from Code/5.12.23-JavaExam3/bin/App.class rename to Code/Steiner/5.12.23-JavaExam3/bin/App.class diff --git a/Code/5.12.23-JavaExam3/src/App.java b/Code/Steiner/5.12.23-JavaExam3/src/App.java similarity index 100% rename from Code/5.12.23-JavaExam3/src/App.java rename to Code/Steiner/5.12.23-JavaExam3/src/App.java diff --git a/Code/Age/.vscode/settings.json b/Code/Steiner/Age/.vscode/settings.json similarity index 100% rename from Code/Age/.vscode/settings.json rename to Code/Steiner/Age/.vscode/settings.json diff --git a/Code/Age/README.md b/Code/Steiner/Age/README.md similarity index 100% rename from Code/Age/README.md rename to Code/Steiner/Age/README.md diff --git a/Code/Age/bin/App.class b/Code/Steiner/Age/bin/App.class similarity index 100% rename from Code/Age/bin/App.class rename to Code/Steiner/Age/bin/App.class diff --git a/Code/Age/src/App.class b/Code/Steiner/Age/src/App.class similarity index 100% rename from Code/Age/src/App.class rename to Code/Steiner/Age/src/App.class diff --git a/Code/Age/src/App.java b/Code/Steiner/Age/src/App.java similarity index 100% rename from Code/Age/src/App.java rename to Code/Steiner/Age/src/App.java diff --git a/Code/Boolean/.vscode/settings.json b/Code/Steiner/Boolean/.vscode/settings.json similarity index 100% rename from Code/Boolean/.vscode/settings.json rename to Code/Steiner/Boolean/.vscode/settings.json diff --git a/Code/Boolean/README.md b/Code/Steiner/Boolean/README.md similarity index 100% rename from Code/Boolean/README.md rename to Code/Steiner/Boolean/README.md diff --git a/Code/Boolean/bin/App.class b/Code/Steiner/Boolean/bin/App.class similarity index 100% rename from Code/Boolean/bin/App.class rename to Code/Steiner/Boolean/bin/App.class diff --git a/Code/Boolean/src/App.java b/Code/Steiner/Boolean/src/App.java similarity index 100% rename from Code/Boolean/src/App.java rename to Code/Steiner/Boolean/src/App.java diff --git a/Code/Debuging_Prüfungen/debuging/.vscode/settings.json b/Code/Steiner/Debuging_Prüfungen/debuging/.vscode/settings.json similarity index 100% rename from Code/Debuging_Prüfungen/debuging/.vscode/settings.json rename to Code/Steiner/Debuging_Prüfungen/debuging/.vscode/settings.json diff --git a/Code/Debuging_Prüfungen/debuging/README.md b/Code/Steiner/Debuging_Prüfungen/debuging/README.md similarity index 100% rename from Code/Debuging_Prüfungen/debuging/README.md rename to Code/Steiner/Debuging_Prüfungen/debuging/README.md diff --git a/Code/Debuging_Prüfungen/debuging/bin/App.class b/Code/Steiner/Debuging_Prüfungen/debuging/bin/App.class similarity index 100% rename from Code/Debuging_Prüfungen/debuging/bin/App.class rename to Code/Steiner/Debuging_Prüfungen/debuging/bin/App.class diff --git a/Code/Debuging_Prüfungen/debuging/src/App.java b/Code/Steiner/Debuging_Prüfungen/debuging/src/App.java similarity index 100% rename from Code/Debuging_Prüfungen/debuging/src/App.java rename to Code/Steiner/Debuging_Prüfungen/debuging/src/App.java diff --git a/Code/Exchange/.vscode/settings.json b/Code/Steiner/Exchange/.vscode/settings.json similarity index 100% rename from Code/Exchange/.vscode/settings.json rename to Code/Steiner/Exchange/.vscode/settings.json diff --git a/Code/Exchange/README.md b/Code/Steiner/Exchange/README.md similarity index 100% rename from Code/Exchange/README.md rename to Code/Steiner/Exchange/README.md diff --git a/Code/Exchange/bin/App.class b/Code/Steiner/Exchange/bin/App.class similarity index 100% rename from Code/Exchange/bin/App.class rename to Code/Steiner/Exchange/bin/App.class diff --git a/Code/Exchange/src/App.java b/Code/Steiner/Exchange/src/App.java similarity index 100% rename from Code/Exchange/src/App.java rename to Code/Steiner/Exchange/src/App.java diff --git a/Code/Geografie/.vscode/settings.json b/Code/Steiner/Geografie/.vscode/settings.json similarity index 100% rename from Code/Geografie/.vscode/settings.json rename to Code/Steiner/Geografie/.vscode/settings.json diff --git a/Code/Geografie/README.md b/Code/Steiner/Geografie/README.md similarity index 100% rename from Code/Geografie/README.md rename to Code/Steiner/Geografie/README.md diff --git a/Code/Geografie/bin/App.class b/Code/Steiner/Geografie/bin/App.class similarity index 100% rename from Code/Geografie/bin/App.class rename to Code/Steiner/Geografie/bin/App.class diff --git a/Code/Geografie/src/App.java b/Code/Steiner/Geografie/src/App.java similarity index 100% rename from Code/Geografie/src/App.java rename to Code/Steiner/Geografie/src/App.java diff --git a/Code/JavaOldCode/.vscode/settings.json b/Code/Steiner/JavaOldCode/.vscode/settings.json similarity index 100% rename from Code/JavaOldCode/.vscode/settings.json rename to Code/Steiner/JavaOldCode/.vscode/settings.json diff --git a/Code/JavaOldCode/README.md b/Code/Steiner/JavaOldCode/README.md similarity index 100% rename from Code/JavaOldCode/README.md rename to Code/Steiner/JavaOldCode/README.md diff --git a/Code/JavaOldCode/bin/Archiv/Gaptext.class b/Code/Steiner/JavaOldCode/bin/Archiv/Gaptext.class similarity index 100% rename from Code/JavaOldCode/bin/Archiv/Gaptext.class rename to Code/Steiner/JavaOldCode/bin/Archiv/Gaptext.class diff --git a/Code/JavaOldCode/bin/Archiv/Sort.class b/Code/Steiner/JavaOldCode/bin/Archiv/Sort.class similarity index 100% rename from Code/JavaOldCode/bin/Archiv/Sort.class rename to Code/Steiner/JavaOldCode/bin/Archiv/Sort.class diff --git a/Code/JavaOldCode/bin/Archiv/Yoda.class b/Code/Steiner/JavaOldCode/bin/Archiv/Yoda.class similarity index 100% rename from Code/JavaOldCode/bin/Archiv/Yoda.class rename to Code/Steiner/JavaOldCode/bin/Archiv/Yoda.class diff --git a/Code/JavaOldCode/bin/Archiv/exchange.class b/Code/Steiner/JavaOldCode/bin/Archiv/exchange.class similarity index 100% rename from Code/JavaOldCode/bin/Archiv/exchange.class rename to Code/Steiner/JavaOldCode/bin/Archiv/exchange.class diff --git a/Code/JavaOldCode/bin/Grundlagen.class b/Code/Steiner/JavaOldCode/bin/Grundlagen.class similarity index 100% rename from Code/JavaOldCode/bin/Grundlagen.class rename to Code/Steiner/JavaOldCode/bin/Grundlagen.class diff --git a/Code/JavaOldCode/bin/Testcode.class b/Code/Steiner/JavaOldCode/bin/Testcode.class similarity index 100% rename from Code/JavaOldCode/bin/Testcode.class rename to Code/Steiner/JavaOldCode/bin/Testcode.class diff --git a/Code/JavaOldCode/src/Archiv/Gaptext.java b/Code/Steiner/JavaOldCode/src/Archiv/Gaptext.java similarity index 100% rename from Code/JavaOldCode/src/Archiv/Gaptext.java rename to Code/Steiner/JavaOldCode/src/Archiv/Gaptext.java diff --git a/Code/JavaOldCode/src/Archiv/Sort.java b/Code/Steiner/JavaOldCode/src/Archiv/Sort.java similarity index 100% rename from Code/JavaOldCode/src/Archiv/Sort.java rename to Code/Steiner/JavaOldCode/src/Archiv/Sort.java diff --git a/Code/JavaOldCode/src/Archiv/Yoda.java b/Code/Steiner/JavaOldCode/src/Archiv/Yoda.java similarity index 100% rename from Code/JavaOldCode/src/Archiv/Yoda.java rename to Code/Steiner/JavaOldCode/src/Archiv/Yoda.java diff --git a/Code/JavaOldCode/src/Archiv/exchange.java b/Code/Steiner/JavaOldCode/src/Archiv/exchange.java similarity index 100% rename from Code/JavaOldCode/src/Archiv/exchange.java rename to Code/Steiner/JavaOldCode/src/Archiv/exchange.java diff --git a/Code/JavaOldCode/src/Grundlagen.java b/Code/Steiner/JavaOldCode/src/Grundlagen.java similarity index 100% rename from Code/JavaOldCode/src/Grundlagen.java rename to Code/Steiner/JavaOldCode/src/Grundlagen.java diff --git a/Code/JavaOldCode/src/Testcode.java b/Code/Steiner/JavaOldCode/src/Testcode.java similarity index 100% rename from Code/JavaOldCode/src/Testcode.java rename to Code/Steiner/JavaOldCode/src/Testcode.java diff --git a/Code/MATHE/.vscode/settings.json b/Code/Steiner/MATHE/.vscode/settings.json similarity index 100% rename from Code/MATHE/.vscode/settings.json rename to Code/Steiner/MATHE/.vscode/settings.json diff --git a/Code/MATHE/README.md b/Code/Steiner/MATHE/README.md similarity index 100% rename from Code/MATHE/README.md rename to Code/Steiner/MATHE/README.md diff --git a/Code/MATHE/bin/App.class b/Code/Steiner/MATHE/bin/App.class similarity index 100% rename from Code/MATHE/bin/App.class rename to Code/Steiner/MATHE/bin/App.class diff --git a/Code/MATHE/src/App.java b/Code/Steiner/MATHE/src/App.java similarity index 100% rename from Code/MATHE/src/App.java rename to Code/Steiner/MATHE/src/App.java diff --git a/Code/Uhrzeiten/Time/.vscode/settings.json b/Code/Steiner/Uhrzeiten/Time/.vscode/settings.json similarity index 100% rename from Code/Uhrzeiten/Time/.vscode/settings.json rename to Code/Steiner/Uhrzeiten/Time/.vscode/settings.json diff --git a/Code/Uhrzeiten/Time/README.md b/Code/Steiner/Uhrzeiten/Time/README.md similarity index 100% rename from Code/Uhrzeiten/Time/README.md rename to Code/Steiner/Uhrzeiten/Time/README.md diff --git a/Code/Uhrzeiten/Time/bin/App.class b/Code/Steiner/Uhrzeiten/Time/bin/App.class similarity index 100% rename from Code/Uhrzeiten/Time/bin/App.class rename to Code/Steiner/Uhrzeiten/Time/bin/App.class diff --git a/Code/Uhrzeiten/Time/src/App.java b/Code/Steiner/Uhrzeiten/Time/src/App.java similarity index 100% rename from Code/Uhrzeiten/Time/src/App.java rename to Code/Steiner/Uhrzeiten/Time/src/App.java diff --git a/Code/Variablen_Deklarieren/variablen-deklarieren/.vscode/settings.json b/Code/Steiner/Variablen_Deklarieren/variablen-deklarieren/.vscode/settings.json similarity index 100% rename from Code/Variablen_Deklarieren/variablen-deklarieren/.vscode/settings.json rename to Code/Steiner/Variablen_Deklarieren/variablen-deklarieren/.vscode/settings.json diff --git a/Code/Variablen_Deklarieren/variablen-deklarieren/README.md b/Code/Steiner/Variablen_Deklarieren/variablen-deklarieren/README.md similarity index 100% rename from Code/Variablen_Deklarieren/variablen-deklarieren/README.md rename to Code/Steiner/Variablen_Deklarieren/variablen-deklarieren/README.md diff --git a/Code/Variablen_Deklarieren/variablen-deklarieren/bin/App.class b/Code/Steiner/Variablen_Deklarieren/variablen-deklarieren/bin/App.class similarity index 100% rename from Code/Variablen_Deklarieren/variablen-deklarieren/bin/App.class rename to Code/Steiner/Variablen_Deklarieren/variablen-deklarieren/bin/App.class diff --git a/Code/Variablen_Deklarieren/variablen-deklarieren/src/App.java b/Code/Steiner/Variablen_Deklarieren/variablen-deklarieren/src/App.java similarity index 100% rename from Code/Variablen_Deklarieren/variablen-deklarieren/src/App.java rename to Code/Steiner/Variablen_Deklarieren/variablen-deklarieren/src/App.java diff --git a/Code/Variablen_sortieren/.vscode/settings.json b/Code/Steiner/Variablen_sortieren/.vscode/settings.json similarity index 100% rename from Code/Variablen_sortieren/.vscode/settings.json rename to Code/Steiner/Variablen_sortieren/.vscode/settings.json diff --git a/Code/Variablen_sortieren/README.md b/Code/Steiner/Variablen_sortieren/README.md similarity index 100% rename from Code/Variablen_sortieren/README.md rename to Code/Steiner/Variablen_sortieren/README.md diff --git a/Code/Variablen_sortieren/bin/Input.class b/Code/Steiner/Variablen_sortieren/bin/Input.class similarity index 100% rename from Code/Variablen_sortieren/bin/Input.class rename to Code/Steiner/Variablen_sortieren/bin/Input.class diff --git a/Code/Variablen_sortieren/bin/Zufall.class b/Code/Steiner/Variablen_sortieren/bin/Zufall.class similarity index 100% rename from Code/Variablen_sortieren/bin/Zufall.class rename to Code/Steiner/Variablen_sortieren/bin/Zufall.class diff --git a/Code/Variablen_sortieren/src/Input.java b/Code/Steiner/Variablen_sortieren/src/Input.java similarity index 100% rename from Code/Variablen_sortieren/src/Input.java rename to Code/Steiner/Variablen_sortieren/src/Input.java diff --git a/Code/Variablen_sortieren/src/Zufall.java b/Code/Steiner/Variablen_sortieren/src/Zufall.java similarity index 100% rename from Code/Variablen_sortieren/src/Zufall.java rename to Code/Steiner/Variablen_sortieren/src/Zufall.java diff --git a/Code/arraysPractice/.vscode/settings.json b/Code/Steiner/arraysPractice/.vscode/settings.json similarity index 100% rename from Code/arraysPractice/.vscode/settings.json rename to Code/Steiner/arraysPractice/.vscode/settings.json diff --git a/Code/arraysPractice/README.md b/Code/Steiner/arraysPractice/README.md similarity index 100% rename from Code/arraysPractice/README.md rename to Code/Steiner/arraysPractice/README.md diff --git a/Code/arraysPractice/bin/App.class b/Code/Steiner/arraysPractice/bin/App.class similarity index 100% rename from Code/arraysPractice/bin/App.class rename to Code/Steiner/arraysPractice/bin/App.class diff --git a/Code/arraysPractice/src/App.java b/Code/Steiner/arraysPractice/src/App.java similarity index 100% rename from Code/arraysPractice/src/App.java rename to Code/Steiner/arraysPractice/src/App.java diff --git a/Code/arraysTest/.vscode/settings.json b/Code/Steiner/arraysTest/.vscode/settings.json similarity index 100% rename from Code/arraysTest/.vscode/settings.json rename to Code/Steiner/arraysTest/.vscode/settings.json diff --git a/Code/arraysTest/README.md b/Code/Steiner/arraysTest/README.md similarity index 100% rename from Code/arraysTest/README.md rename to Code/Steiner/arraysTest/README.md diff --git a/Code/arraysTest/bin/App.class b/Code/Steiner/arraysTest/bin/App.class similarity index 100% rename from Code/arraysTest/bin/App.class rename to Code/Steiner/arraysTest/bin/App.class diff --git a/Code/arraysTest/src/App.java b/Code/Steiner/arraysTest/src/App.java similarity index 100% rename from Code/arraysTest/src/App.java rename to Code/Steiner/arraysTest/src/App.java diff --git a/Code/aufgabeZwei/.vscode/settings.json b/Code/Steiner/aufgabeZwei/.vscode/settings.json similarity index 100% rename from Code/aufgabeZwei/.vscode/settings.json rename to Code/Steiner/aufgabeZwei/.vscode/settings.json diff --git a/Code/aufgabeZwei/README.md b/Code/Steiner/aufgabeZwei/README.md similarity index 100% rename from Code/aufgabeZwei/README.md rename to Code/Steiner/aufgabeZwei/README.md diff --git a/Code/aufgabeZwei/bin/App.class b/Code/Steiner/aufgabeZwei/bin/App.class similarity index 100% rename from Code/aufgabeZwei/bin/App.class rename to Code/Steiner/aufgabeZwei/bin/App.class diff --git a/Code/aufgabeZwei/src/App.java b/Code/Steiner/aufgabeZwei/src/App.java similarity index 100% rename from Code/aufgabeZwei/src/App.java rename to Code/Steiner/aufgabeZwei/src/App.java diff --git a/Code/battleShip/.vscode/settings.json b/Code/Steiner/battleShip/.vscode/settings.json similarity index 100% rename from Code/battleShip/.vscode/settings.json rename to Code/Steiner/battleShip/.vscode/settings.json diff --git a/Code/battleShip/README.md b/Code/Steiner/battleShip/README.md similarity index 100% rename from Code/battleShip/README.md rename to Code/Steiner/battleShip/README.md diff --git a/Code/battleShip/bin/App.class b/Code/Steiner/battleShip/bin/App.class similarity index 100% rename from Code/battleShip/bin/App.class rename to Code/Steiner/battleShip/bin/App.class diff --git a/Code/battleShip/bin/test.class b/Code/Steiner/battleShip/bin/test.class similarity index 100% rename from Code/battleShip/bin/test.class rename to Code/Steiner/battleShip/bin/test.class diff --git a/Code/battleShip/notes/battleShip-V2.pap b/Code/Steiner/battleShip/notes/battleShip-V2.pap similarity index 100% rename from Code/battleShip/notes/battleShip-V2.pap rename to Code/Steiner/battleShip/notes/battleShip-V2.pap diff --git a/Code/battleShip/notes/battleShip.pap b/Code/Steiner/battleShip/notes/battleShip.pap similarity index 100% rename from Code/battleShip/notes/battleShip.pap rename to Code/Steiner/battleShip/notes/battleShip.pap diff --git a/Code/battleShip/notes/board.txt b/Code/Steiner/battleShip/notes/board.txt similarity index 100% rename from Code/battleShip/notes/board.txt rename to Code/Steiner/battleShip/notes/board.txt diff --git a/Code/battleShip/src/App.class b/Code/Steiner/battleShip/src/App.class similarity index 100% rename from Code/battleShip/src/App.class rename to Code/Steiner/battleShip/src/App.class diff --git a/Code/battleShip/src/App.java b/Code/Steiner/battleShip/src/App.java similarity index 100% rename from Code/battleShip/src/App.java rename to Code/Steiner/battleShip/src/App.java diff --git a/Code/battleShip/src/test.class b/Code/Steiner/battleShip/src/test.class similarity index 100% rename from Code/battleShip/src/test.class rename to Code/Steiner/battleShip/src/test.class diff --git a/Code/battleShip/src/test.java b/Code/Steiner/battleShip/src/test.java similarity index 100% rename from Code/battleShip/src/test.java rename to Code/Steiner/battleShip/src/test.java diff --git a/Code/bookAufgabe3/.vscode/settings.json b/Code/Steiner/bookAufgabe3/.vscode/settings.json similarity index 100% rename from Code/bookAufgabe3/.vscode/settings.json rename to Code/Steiner/bookAufgabe3/.vscode/settings.json diff --git a/Code/bookAufgabe3/README.md b/Code/Steiner/bookAufgabe3/README.md similarity index 100% rename from Code/bookAufgabe3/README.md rename to Code/Steiner/bookAufgabe3/README.md diff --git a/Code/bookAufgabe3/bin/App.class b/Code/Steiner/bookAufgabe3/bin/App.class similarity index 100% rename from Code/bookAufgabe3/bin/App.class rename to Code/Steiner/bookAufgabe3/bin/App.class diff --git a/Code/bookAufgabe3/src/App.java b/Code/Steiner/bookAufgabe3/src/App.java similarity index 100% rename from Code/bookAufgabe3/src/App.java rename to Code/Steiner/bookAufgabe3/src/App.java diff --git a/Code/bookTaskTwo/.vscode/settings.json b/Code/Steiner/bookTaskTwo/.vscode/settings.json similarity index 100% rename from Code/bookTaskTwo/.vscode/settings.json rename to Code/Steiner/bookTaskTwo/.vscode/settings.json diff --git a/Code/bookTaskTwo/README.md b/Code/Steiner/bookTaskTwo/README.md similarity index 100% rename from Code/bookTaskTwo/README.md rename to Code/Steiner/bookTaskTwo/README.md diff --git a/Code/bookTaskTwo/bin/App.class b/Code/Steiner/bookTaskTwo/bin/App.class similarity index 100% rename from Code/bookTaskTwo/bin/App.class rename to Code/Steiner/bookTaskTwo/bin/App.class diff --git a/Code/bookTaskTwo/src/App.java b/Code/Steiner/bookTaskTwo/src/App.java similarity index 100% rename from Code/bookTaskTwo/src/App.java rename to Code/Steiner/bookTaskTwo/src/App.java diff --git a/Code/case/.vscode/settings.json b/Code/Steiner/case/.vscode/settings.json similarity index 100% rename from Code/case/.vscode/settings.json rename to Code/Steiner/case/.vscode/settings.json diff --git a/Code/case/README.md b/Code/Steiner/case/README.md similarity index 100% rename from Code/case/README.md rename to Code/Steiner/case/README.md diff --git a/Code/case/bin/App.class b/Code/Steiner/case/bin/App.class similarity index 100% rename from Code/case/bin/App.class rename to Code/Steiner/case/bin/App.class diff --git a/Code/case/src/App.java b/Code/Steiner/case/src/App.java similarity index 100% rename from Code/case/src/App.java rename to Code/Steiner/case/src/App.java diff --git a/Code/codinGame/.vscode/settings.json b/Code/Steiner/codinGame/.vscode/settings.json similarity index 100% rename from Code/codinGame/.vscode/settings.json rename to Code/Steiner/codinGame/.vscode/settings.json diff --git a/Code/codinGame/README.md b/Code/Steiner/codinGame/README.md similarity index 100% rename from Code/codinGame/README.md rename to Code/Steiner/codinGame/README.md diff --git a/Code/playGround24.1.24/bin/App.class b/Code/Steiner/codinGame/bin/App.class similarity index 100% rename from Code/playGround24.1.24/bin/App.class rename to Code/Steiner/codinGame/bin/App.class diff --git a/Code/codinGame/src/App.java b/Code/Steiner/codinGame/src/App.java similarity index 100% rename from Code/codinGame/src/App.java rename to Code/Steiner/codinGame/src/App.java diff --git a/Code/cute/.vscode/settings.json b/Code/Steiner/cute/.vscode/settings.json similarity index 100% rename from Code/cute/.vscode/settings.json rename to Code/Steiner/cute/.vscode/settings.json diff --git a/Code/cute/README.md b/Code/Steiner/cute/README.md similarity index 100% rename from Code/cute/README.md rename to Code/Steiner/cute/README.md diff --git a/Code/cute/bin/App.class b/Code/Steiner/cute/bin/App.class similarity index 100% rename from Code/cute/bin/App.class rename to Code/Steiner/cute/bin/App.class diff --git a/Code/cute/src/App.java b/Code/Steiner/cute/src/App.java similarity index 100% rename from Code/cute/src/App.java rename to Code/Steiner/cute/src/App.java diff --git a/Code/debugging/.vscode/settings.json b/Code/Steiner/debugging/.vscode/settings.json similarity index 100% rename from Code/debugging/.vscode/settings.json rename to Code/Steiner/debugging/.vscode/settings.json diff --git a/Code/debugging/README.md b/Code/Steiner/debugging/README.md similarity index 100% rename from Code/debugging/README.md rename to Code/Steiner/debugging/README.md diff --git a/Code/debugging/bin/App.class b/Code/Steiner/debugging/bin/App.class similarity index 100% rename from Code/debugging/bin/App.class rename to Code/Steiner/debugging/bin/App.class diff --git a/Code/debugging/src/App.java b/Code/Steiner/debugging/src/App.java similarity index 100% rename from Code/debugging/src/App.java rename to Code/Steiner/debugging/src/App.java diff --git a/Code/debugging02/.vscode/settings.json b/Code/Steiner/debugging02/.vscode/settings.json similarity index 100% rename from Code/debugging02/.vscode/settings.json rename to Code/Steiner/debugging02/.vscode/settings.json diff --git a/Code/debugging02/README.md b/Code/Steiner/debugging02/README.md similarity index 100% rename from Code/debugging02/README.md rename to Code/Steiner/debugging02/README.md diff --git a/Code/debugging02/bin/App.class b/Code/Steiner/debugging02/bin/App.class similarity index 100% rename from Code/debugging02/bin/App.class rename to Code/Steiner/debugging02/bin/App.class diff --git a/Code/debugging02/src/App.java b/Code/Steiner/debugging02/src/App.java similarity index 100% rename from Code/debugging02/src/App.java rename to Code/Steiner/debugging02/src/App.java diff --git a/Code/dnd dice/.vscode/settings.json b/Code/Steiner/dnd dice/.vscode/settings.json similarity index 100% rename from Code/dnd dice/.vscode/settings.json rename to Code/Steiner/dnd dice/.vscode/settings.json diff --git a/Code/dnd dice/README.md b/Code/Steiner/dnd dice/README.md similarity index 100% rename from Code/dnd dice/README.md rename to Code/Steiner/dnd dice/README.md diff --git a/Code/dnd dice/bin/App.class b/Code/Steiner/dnd dice/bin/App.class similarity index 100% rename from Code/dnd dice/bin/App.class rename to Code/Steiner/dnd dice/bin/App.class diff --git a/Code/dnd dice/src/App.class b/Code/Steiner/dnd dice/src/App.class similarity index 100% rename from Code/dnd dice/src/App.class rename to Code/Steiner/dnd dice/src/App.class diff --git a/Code/dnd dice/src/App.java b/Code/Steiner/dnd dice/src/App.java similarity index 100% rename from Code/dnd dice/src/App.java rename to Code/Steiner/dnd dice/src/App.java diff --git a/Code/forDebugging/.vscode/settings.json b/Code/Steiner/findNumberXwithY/.vscode/settings.json similarity index 100% rename from Code/forDebugging/.vscode/settings.json rename to Code/Steiner/findNumberXwithY/.vscode/settings.json diff --git a/Code/forDebugging/README.md b/Code/Steiner/findNumberXwithY/README.md similarity index 100% rename from Code/forDebugging/README.md rename to Code/Steiner/findNumberXwithY/README.md diff --git a/Code/Steiner/findNumberXwithY/bin/App.class b/Code/Steiner/findNumberXwithY/bin/App.class new file mode 100644 index 0000000..7b13690 Binary files /dev/null and b/Code/Steiner/findNumberXwithY/bin/App.class differ diff --git a/Code/Steiner/findNumberXwithY/src/App.class b/Code/Steiner/findNumberXwithY/src/App.class new file mode 100644 index 0000000..70386db Binary files /dev/null and b/Code/Steiner/findNumberXwithY/src/App.class differ diff --git a/Code/Steiner/findNumberXwithY/src/App.java b/Code/Steiner/findNumberXwithY/src/App.java new file mode 100644 index 0000000..9ccae5d --- /dev/null +++ b/Code/Steiner/findNumberXwithY/src/App.java @@ -0,0 +1,20 @@ +public class App { + public static int findNumber(int numberOfNumbers, String startSequenz) { + int counter = 0; + int i = Integer.parseInt(startSequenz); + while (true) { + if (String.valueOf(i).startsWith(startSequenz)) { + counter++; + if (counter == numberOfNumbers) { + return i; + } + } + i++; + } + } + + public static void main(String[] args) { + System.out.println(findNumber(12, "253")); + System.out.println(findNumber(1000, "9876")); + } +} diff --git a/Code/forIterration/.vscode/settings.json b/Code/Steiner/forDebugging/.vscode/settings.json similarity index 100% rename from Code/forIterration/.vscode/settings.json rename to Code/Steiner/forDebugging/.vscode/settings.json diff --git a/Code/forIterration/README.md b/Code/Steiner/forDebugging/README.md similarity index 100% rename from Code/forIterration/README.md rename to Code/Steiner/forDebugging/README.md diff --git a/Code/forDebugging/bin/App.class b/Code/Steiner/forDebugging/bin/App.class similarity index 100% rename from Code/forDebugging/bin/App.class rename to Code/Steiner/forDebugging/bin/App.class diff --git a/Code/forDebugging/src/App.java b/Code/Steiner/forDebugging/src/App.java similarity index 100% rename from Code/forDebugging/src/App.java rename to Code/Steiner/forDebugging/src/App.java diff --git a/Code/gambling/.vscode/settings.json b/Code/Steiner/forIterration/.vscode/settings.json similarity index 100% rename from Code/gambling/.vscode/settings.json rename to Code/Steiner/forIterration/.vscode/settings.json diff --git a/Code/gambling/README.md b/Code/Steiner/forIterration/README.md similarity index 100% rename from Code/gambling/README.md rename to Code/Steiner/forIterration/README.md diff --git a/Code/forIterration/bin/App.class b/Code/Steiner/forIterration/bin/App.class similarity index 100% rename from Code/forIterration/bin/App.class rename to Code/Steiner/forIterration/bin/App.class diff --git a/Code/forIterration/src/App.java b/Code/Steiner/forIterration/src/App.java similarity index 100% rename from Code/forIterration/src/App.java rename to Code/Steiner/forIterration/src/App.java diff --git a/Code/gaySex/.vscode/settings.json b/Code/Steiner/gambling/.vscode/settings.json similarity index 100% rename from Code/gaySex/.vscode/settings.json rename to Code/Steiner/gambling/.vscode/settings.json diff --git a/Code/gaySex/README.md b/Code/Steiner/gambling/README.md similarity index 100% rename from Code/gaySex/README.md rename to Code/Steiner/gambling/README.md diff --git a/Code/gambling/bin/App.class b/Code/Steiner/gambling/bin/App.class similarity index 100% rename from Code/gambling/bin/App.class rename to Code/Steiner/gambling/bin/App.class diff --git a/Code/gambling/bin/Gambling.pap b/Code/Steiner/gambling/bin/Gambling.pap similarity index 100% rename from Code/gambling/bin/Gambling.pap rename to Code/Steiner/gambling/bin/Gambling.pap diff --git a/Code/gambling/src/App.class b/Code/Steiner/gambling/src/App.class similarity index 100% rename from Code/gambling/src/App.class rename to Code/Steiner/gambling/src/App.class diff --git a/Code/gambling/src/App.java b/Code/Steiner/gambling/src/App.java similarity index 100% rename from Code/gambling/src/App.java rename to Code/Steiner/gambling/src/App.java diff --git a/Code/gambling/src/Gambling.pap b/Code/Steiner/gambling/src/Gambling.pap similarity index 100% rename from Code/gambling/src/Gambling.pap rename to Code/Steiner/gambling/src/Gambling.pap diff --git a/Code/genericTask/.vscode/settings.json b/Code/Steiner/gaySex/.vscode/settings.json similarity index 100% rename from Code/genericTask/.vscode/settings.json rename to Code/Steiner/gaySex/.vscode/settings.json diff --git a/Code/genericTask/README.md b/Code/Steiner/gaySex/README.md similarity index 100% rename from Code/genericTask/README.md rename to Code/Steiner/gaySex/README.md diff --git a/Code/gaySex/bin/App.class b/Code/Steiner/gaySex/bin/App.class similarity index 100% rename from Code/gaySex/bin/App.class rename to Code/Steiner/gaySex/bin/App.class diff --git a/Code/gaySex/src/App.java b/Code/Steiner/gaySex/src/App.java similarity index 100% rename from Code/gaySex/src/App.java rename to Code/Steiner/gaySex/src/App.java diff --git a/Code/getNachname/.vscode/settings.json b/Code/Steiner/genericTask/.vscode/settings.json similarity index 100% rename from Code/getNachname/.vscode/settings.json rename to Code/Steiner/genericTask/.vscode/settings.json diff --git a/Code/getNachname/README.md b/Code/Steiner/genericTask/README.md similarity index 100% rename from Code/getNachname/README.md rename to Code/Steiner/genericTask/README.md diff --git a/Code/genericTask/bin/App.class b/Code/Steiner/genericTask/bin/App.class similarity index 100% rename from Code/genericTask/bin/App.class rename to Code/Steiner/genericTask/bin/App.class diff --git a/Code/genericTask/src/App.java b/Code/Steiner/genericTask/src/App.java similarity index 100% rename from Code/genericTask/src/App.java rename to Code/Steiner/genericTask/src/App.java diff --git a/Code/guessing_game/game01/.vscode/settings.json b/Code/Steiner/getNachname/.vscode/settings.json similarity index 100% rename from Code/guessing_game/game01/.vscode/settings.json rename to Code/Steiner/getNachname/.vscode/settings.json diff --git a/Code/guessing_game/game01/README.md b/Code/Steiner/getNachname/README.md similarity index 100% rename from Code/guessing_game/game01/README.md rename to Code/Steiner/getNachname/README.md diff --git a/Code/getNachname/bin/App.class b/Code/Steiner/getNachname/bin/App.class similarity index 100% rename from Code/getNachname/bin/App.class rename to Code/Steiner/getNachname/bin/App.class diff --git a/Code/getNachname/src/App.java b/Code/Steiner/getNachname/src/App.java similarity index 100% rename from Code/getNachname/src/App.java rename to Code/Steiner/getNachname/src/App.java diff --git a/Code/guessing_game/game1/.vscode/settings.json b/Code/Steiner/guessing_game/game01/.vscode/settings.json similarity index 100% rename from Code/guessing_game/game1/.vscode/settings.json rename to Code/Steiner/guessing_game/game01/.vscode/settings.json diff --git a/Code/guessing_game/game1/README.md b/Code/Steiner/guessing_game/game01/README.md similarity index 100% rename from Code/guessing_game/game1/README.md rename to Code/Steiner/guessing_game/game01/README.md diff --git a/Code/guessing_game/game01/bin/App.class b/Code/Steiner/guessing_game/game01/bin/App.class similarity index 100% rename from Code/guessing_game/game01/bin/App.class rename to Code/Steiner/guessing_game/game01/bin/App.class diff --git a/Code/guessing_game/game01/src/App.java b/Code/Steiner/guessing_game/game01/src/App.java similarity index 100% rename from Code/guessing_game/game01/src/App.java rename to Code/Steiner/guessing_game/game01/src/App.java diff --git a/Code/hackingYourOwnPassword/.vscode/settings.json b/Code/Steiner/guessing_game/game1/.vscode/settings.json similarity index 100% rename from Code/hackingYourOwnPassword/.vscode/settings.json rename to Code/Steiner/guessing_game/game1/.vscode/settings.json diff --git a/Code/hackingYourOwnPassword/README.md b/Code/Steiner/guessing_game/game1/README.md similarity index 100% rename from Code/hackingYourOwnPassword/README.md rename to Code/Steiner/guessing_game/game1/README.md diff --git a/Code/guessing_game/game1/bin/App.class b/Code/Steiner/guessing_game/game1/bin/App.class similarity index 100% rename from Code/guessing_game/game1/bin/App.class rename to Code/Steiner/guessing_game/game1/bin/App.class diff --git a/Code/guessing_game/game1/src/App.java b/Code/Steiner/guessing_game/game1/src/App.java similarity index 100% rename from Code/guessing_game/game1/src/App.java rename to Code/Steiner/guessing_game/game1/src/App.java diff --git a/Code/heeeeeeeloWorld/.vscode/settings.json b/Code/Steiner/hackingYourOwnPassword/.vscode/settings.json similarity index 100% rename from Code/heeeeeeeloWorld/.vscode/settings.json rename to Code/Steiner/hackingYourOwnPassword/.vscode/settings.json diff --git a/Code/heeeeeeeloWorld/README.md b/Code/Steiner/hackingYourOwnPassword/README.md similarity index 100% rename from Code/heeeeeeeloWorld/README.md rename to Code/Steiner/hackingYourOwnPassword/README.md diff --git a/Code/hackingYourOwnPassword/bin/App.class b/Code/Steiner/hackingYourOwnPassword/bin/App.class similarity index 100% rename from Code/hackingYourOwnPassword/bin/App.class rename to Code/Steiner/hackingYourOwnPassword/bin/App.class diff --git a/Code/hackingYourOwnPassword/src/App.java b/Code/Steiner/hackingYourOwnPassword/src/App.java similarity index 100% rename from Code/hackingYourOwnPassword/src/App.java rename to Code/Steiner/hackingYourOwnPassword/src/App.java diff --git a/Code/helpMePlease/.vscode/settings.json b/Code/Steiner/heeeeeeeloWorld/.vscode/settings.json similarity index 100% rename from Code/helpMePlease/.vscode/settings.json rename to Code/Steiner/heeeeeeeloWorld/.vscode/settings.json diff --git a/Code/helpMePlease/README.md b/Code/Steiner/heeeeeeeloWorld/README.md similarity index 100% rename from Code/helpMePlease/README.md rename to Code/Steiner/heeeeeeeloWorld/README.md diff --git a/Code/heeeeeeeloWorld/bin/App.class b/Code/Steiner/heeeeeeeloWorld/bin/App.class similarity index 100% rename from Code/heeeeeeeloWorld/bin/App.class rename to Code/Steiner/heeeeeeeloWorld/bin/App.class diff --git a/Code/heeeeeeeloWorld/src/App.java b/Code/Steiner/heeeeeeeloWorld/src/App.java similarity index 100% rename from Code/heeeeeeeloWorld/src/App.java rename to Code/Steiner/heeeeeeeloWorld/src/App.java diff --git a/Code/ifToSwitch/.vscode/settings.json b/Code/Steiner/helpMePlease/.vscode/settings.json similarity index 100% rename from Code/ifToSwitch/.vscode/settings.json rename to Code/Steiner/helpMePlease/.vscode/settings.json diff --git a/Code/ifToSwitch/README.md b/Code/Steiner/helpMePlease/README.md similarity index 100% rename from Code/ifToSwitch/README.md rename to Code/Steiner/helpMePlease/README.md diff --git a/Code/helpMePlease/bin/App.class b/Code/Steiner/helpMePlease/bin/App.class similarity index 100% rename from Code/helpMePlease/bin/App.class rename to Code/Steiner/helpMePlease/bin/App.class diff --git a/Code/helpMePlease/src/App.java b/Code/Steiner/helpMePlease/src/App.java similarity index 100% rename from Code/helpMePlease/src/App.java rename to Code/Steiner/helpMePlease/src/App.java diff --git a/Code/interationBottles/.vscode/settings.json b/Code/Steiner/ifToSwitch/.vscode/settings.json similarity index 100% rename from Code/interationBottles/.vscode/settings.json rename to Code/Steiner/ifToSwitch/.vscode/settings.json diff --git a/Code/interationBottles/README.md b/Code/Steiner/ifToSwitch/README.md similarity index 100% rename from Code/interationBottles/README.md rename to Code/Steiner/ifToSwitch/README.md diff --git a/Code/ifToSwitch/bin/App.class b/Code/Steiner/ifToSwitch/bin/App.class similarity index 100% rename from Code/ifToSwitch/bin/App.class rename to Code/Steiner/ifToSwitch/bin/App.class diff --git a/Code/ifToSwitch/bin/App2.class b/Code/Steiner/ifToSwitch/bin/App2.class similarity index 100% rename from Code/ifToSwitch/bin/App2.class rename to Code/Steiner/ifToSwitch/bin/App2.class diff --git a/Code/ifToSwitch/src/App.java b/Code/Steiner/ifToSwitch/src/App.java similarity index 100% rename from Code/ifToSwitch/src/App.java rename to Code/Steiner/ifToSwitch/src/App.java diff --git a/Code/ifToSwitch/src/App2.java b/Code/Steiner/ifToSwitch/src/App2.java similarity index 100% rename from Code/ifToSwitch/src/App2.java rename to Code/Steiner/ifToSwitch/src/App2.java diff --git a/Code/interationNumbers/.vscode/settings.json b/Code/Steiner/interationBottles/.vscode/settings.json similarity index 100% rename from Code/interationNumbers/.vscode/settings.json rename to Code/Steiner/interationBottles/.vscode/settings.json diff --git a/Code/interationNumbers/README.md b/Code/Steiner/interationBottles/README.md similarity index 100% rename from Code/interationNumbers/README.md rename to Code/Steiner/interationBottles/README.md diff --git a/Code/interationBottles/bin/App.class b/Code/Steiner/interationBottles/bin/App.class similarity index 100% rename from Code/interationBottles/bin/App.class rename to Code/Steiner/interationBottles/bin/App.class diff --git a/Code/interationBottles/src/App.java b/Code/Steiner/interationBottles/src/App.java similarity index 100% rename from Code/interationBottles/src/App.java rename to Code/Steiner/interationBottles/src/App.java diff --git a/Code/itsTheFinalCountDown/.vscode/settings.json b/Code/Steiner/interationNumbers/.vscode/settings.json similarity index 100% rename from Code/itsTheFinalCountDown/.vscode/settings.json rename to Code/Steiner/interationNumbers/.vscode/settings.json diff --git a/Code/itsTheFinalCountDown/README.md b/Code/Steiner/interationNumbers/README.md similarity index 100% rename from Code/itsTheFinalCountDown/README.md rename to Code/Steiner/interationNumbers/README.md diff --git a/Code/interationNumbers/bin/App.class b/Code/Steiner/interationNumbers/bin/App.class similarity index 100% rename from Code/interationNumbers/bin/App.class rename to Code/Steiner/interationNumbers/bin/App.class diff --git a/Code/interationNumbers/src/App.java b/Code/Steiner/interationNumbers/src/App.java similarity index 100% rename from Code/interationNumbers/src/App.java rename to Code/Steiner/interationNumbers/src/App.java diff --git a/Code/jahrGueltig/.vscode/settings.json b/Code/Steiner/itsTheFinalCountDown/.vscode/settings.json similarity index 100% rename from Code/jahrGueltig/.vscode/settings.json rename to Code/Steiner/itsTheFinalCountDown/.vscode/settings.json diff --git a/Code/jahrGueltig/README.md b/Code/Steiner/itsTheFinalCountDown/README.md similarity index 100% rename from Code/jahrGueltig/README.md rename to Code/Steiner/itsTheFinalCountDown/README.md diff --git a/Code/itsTheFinalCountDown/bin/App.class b/Code/Steiner/itsTheFinalCountDown/bin/App.class similarity index 100% rename from Code/itsTheFinalCountDown/bin/App.class rename to Code/Steiner/itsTheFinalCountDown/bin/App.class diff --git a/Code/itsTheFinalCountDown/src/App.java b/Code/Steiner/itsTheFinalCountDown/src/App.java similarity index 100% rename from Code/itsTheFinalCountDown/src/App.java rename to Code/Steiner/itsTheFinalCountDown/src/App.java diff --git a/Code/leadderGameProject/.vscode/settings.json b/Code/Steiner/jahrGueltig/.vscode/settings.json similarity index 100% rename from Code/leadderGameProject/.vscode/settings.json rename to Code/Steiner/jahrGueltig/.vscode/settings.json diff --git a/Code/leadderGameProject/README.md b/Code/Steiner/jahrGueltig/README.md similarity index 100% rename from Code/leadderGameProject/README.md rename to Code/Steiner/jahrGueltig/README.md diff --git a/Code/jahrGueltig/bin/App.class b/Code/Steiner/jahrGueltig/bin/App.class similarity index 100% rename from Code/jahrGueltig/bin/App.class rename to Code/Steiner/jahrGueltig/bin/App.class diff --git a/Code/jahrGueltig/src/App.java b/Code/Steiner/jahrGueltig/src/App.java similarity index 100% rename from Code/jahrGueltig/src/App.java rename to Code/Steiner/jahrGueltig/src/App.java diff --git a/Code/lmao/.vscode/settings.json b/Code/Steiner/leadderGameProject/.vscode/settings.json similarity index 100% rename from Code/lmao/.vscode/settings.json rename to Code/Steiner/leadderGameProject/.vscode/settings.json diff --git a/Code/lmao/README.md b/Code/Steiner/leadderGameProject/README.md similarity index 100% rename from Code/lmao/README.md rename to Code/Steiner/leadderGameProject/README.md diff --git a/Code/leadderGameProject/bin/App.class b/Code/Steiner/leadderGameProject/bin/App.class similarity index 100% rename from Code/leadderGameProject/bin/App.class rename to Code/Steiner/leadderGameProject/bin/App.class diff --git a/Code/leadderGameProject/src/App.class b/Code/Steiner/leadderGameProject/src/App.class similarity index 100% rename from Code/leadderGameProject/src/App.class rename to Code/Steiner/leadderGameProject/src/App.class diff --git a/Code/leadderGameProject/src/App.java b/Code/Steiner/leadderGameProject/src/App.java similarity index 100% rename from Code/leadderGameProject/src/App.java rename to Code/Steiner/leadderGameProject/src/App.java diff --git a/Code/logicalUnd/.vscode/settings.json b/Code/Steiner/lmao/.vscode/settings.json similarity index 100% rename from Code/logicalUnd/.vscode/settings.json rename to Code/Steiner/lmao/.vscode/settings.json diff --git a/Code/logicalUnd/README.md b/Code/Steiner/lmao/README.md similarity index 100% rename from Code/logicalUnd/README.md rename to Code/Steiner/lmao/README.md diff --git a/Code/lmao/bin/App.class b/Code/Steiner/lmao/bin/App.class similarity index 100% rename from Code/lmao/bin/App.class rename to Code/Steiner/lmao/bin/App.class diff --git a/Code/lmao/src/App.java b/Code/Steiner/lmao/src/App.java similarity index 100% rename from Code/lmao/src/App.java rename to Code/Steiner/lmao/src/App.java diff --git a/Code/macDonalds/.vscode/settings.json b/Code/Steiner/logicalUnd/.vscode/settings.json similarity index 100% rename from Code/macDonalds/.vscode/settings.json rename to Code/Steiner/logicalUnd/.vscode/settings.json diff --git a/Code/macDonalds/README.md b/Code/Steiner/logicalUnd/README.md similarity index 100% rename from Code/macDonalds/README.md rename to Code/Steiner/logicalUnd/README.md diff --git a/Code/logicalUnd/bin/App.class b/Code/Steiner/logicalUnd/bin/App.class similarity index 100% rename from Code/logicalUnd/bin/App.class rename to Code/Steiner/logicalUnd/bin/App.class diff --git a/Code/logicalUnd/src/App.java b/Code/Steiner/logicalUnd/src/App.java similarity index 100% rename from Code/logicalUnd/src/App.java rename to Code/Steiner/logicalUnd/src/App.java diff --git a/Code/math1o1/.vscode/settings.json b/Code/Steiner/macDonalds/.vscode/settings.json similarity index 100% rename from Code/math1o1/.vscode/settings.json rename to Code/Steiner/macDonalds/.vscode/settings.json diff --git a/Code/math1o1/README.md b/Code/Steiner/macDonalds/README.md similarity index 100% rename from Code/math1o1/README.md rename to Code/Steiner/macDonalds/README.md diff --git a/Code/macDonalds/bin/App.class b/Code/Steiner/macDonalds/bin/App.class similarity index 100% rename from Code/macDonalds/bin/App.class rename to Code/Steiner/macDonalds/bin/App.class diff --git a/Code/macDonalds/src/App.java b/Code/Steiner/macDonalds/src/App.java similarity index 100% rename from Code/macDonalds/src/App.java rename to Code/Steiner/macDonalds/src/App.java diff --git a/Code/math2o2/.vscode/settings.json b/Code/Steiner/math1o1/.vscode/settings.json similarity index 100% rename from Code/math2o2/.vscode/settings.json rename to Code/Steiner/math1o1/.vscode/settings.json diff --git a/Code/math2o2/README.md b/Code/Steiner/math1o1/README.md similarity index 100% rename from Code/math2o2/README.md rename to Code/Steiner/math1o1/README.md diff --git a/Code/math1o1/bin/App.class b/Code/Steiner/math1o1/bin/App.class similarity index 100% rename from Code/math1o1/bin/App.class rename to Code/Steiner/math1o1/bin/App.class diff --git a/Code/math1o1/src/App.java b/Code/Steiner/math1o1/src/App.java similarity index 100% rename from Code/math1o1/src/App.java rename to Code/Steiner/math1o1/src/App.java diff --git a/Code/methodeNumberOne/.vscode/settings.json b/Code/Steiner/math2o2/.vscode/settings.json similarity index 100% rename from Code/methodeNumberOne/.vscode/settings.json rename to Code/Steiner/math2o2/.vscode/settings.json diff --git a/Code/methodeNumberOne/README.md b/Code/Steiner/math2o2/README.md similarity index 100% rename from Code/methodeNumberOne/README.md rename to Code/Steiner/math2o2/README.md diff --git a/Code/math2o2/bin/App.class b/Code/Steiner/math2o2/bin/App.class similarity index 100% rename from Code/math2o2/bin/App.class rename to Code/Steiner/math2o2/bin/App.class diff --git a/Code/math2o2/src/App.java b/Code/Steiner/math2o2/src/App.java similarity index 100% rename from Code/math2o2/src/App.java rename to Code/Steiner/math2o2/src/App.java diff --git a/Code/mineField/.vscode/settings.json b/Code/Steiner/methodeNumberOne/.vscode/settings.json similarity index 100% rename from Code/mineField/.vscode/settings.json rename to Code/Steiner/methodeNumberOne/.vscode/settings.json diff --git a/Code/mineField/README.md b/Code/Steiner/methodeNumberOne/README.md similarity index 100% rename from Code/mineField/README.md rename to Code/Steiner/methodeNumberOne/README.md diff --git a/Code/methodeNumberOne/bin/App.class b/Code/Steiner/methodeNumberOne/bin/App.class similarity index 100% rename from Code/methodeNumberOne/bin/App.class rename to Code/Steiner/methodeNumberOne/bin/App.class diff --git a/Code/methodeNumberOne/src/App.java b/Code/Steiner/methodeNumberOne/src/App.java similarity index 100% rename from Code/methodeNumberOne/src/App.java rename to Code/Steiner/methodeNumberOne/src/App.java diff --git a/Code/multiply&Divide/.vscode/settings.json b/Code/Steiner/mineField/.vscode/settings.json similarity index 100% rename from Code/multiply&Divide/.vscode/settings.json rename to Code/Steiner/mineField/.vscode/settings.json diff --git a/Code/multiply&Divide/README.md b/Code/Steiner/mineField/README.md similarity index 100% rename from Code/multiply&Divide/README.md rename to Code/Steiner/mineField/README.md diff --git a/Code/mineField/bin/App.class b/Code/Steiner/mineField/bin/App.class similarity index 100% rename from Code/mineField/bin/App.class rename to Code/Steiner/mineField/bin/App.class diff --git a/Code/mineField/src/App.java b/Code/Steiner/mineField/src/App.java similarity index 100% rename from Code/mineField/src/App.java rename to Code/Steiner/mineField/src/App.java diff --git a/Code/numberToStar/.vscode/settings.json b/Code/Steiner/multiply&Divide/.vscode/settings.json similarity index 100% rename from Code/numberToStar/.vscode/settings.json rename to Code/Steiner/multiply&Divide/.vscode/settings.json diff --git a/Code/numberToStar/README.md b/Code/Steiner/multiply&Divide/README.md similarity index 100% rename from Code/numberToStar/README.md rename to Code/Steiner/multiply&Divide/README.md diff --git a/Code/multiply&Divide/bin/App.class b/Code/Steiner/multiply&Divide/bin/App.class similarity index 100% rename from Code/multiply&Divide/bin/App.class rename to Code/Steiner/multiply&Divide/bin/App.class diff --git a/Code/multiply&Divide/src/App.java b/Code/Steiner/multiply&Divide/src/App.java similarity index 100% rename from Code/multiply&Divide/src/App.java rename to Code/Steiner/multiply&Divide/src/App.java diff --git a/Code/papToCode/.vscode/settings.json b/Code/Steiner/numberToStar/.vscode/settings.json similarity index 100% rename from Code/papToCode/.vscode/settings.json rename to Code/Steiner/numberToStar/.vscode/settings.json diff --git a/Code/papToCode/README.md b/Code/Steiner/numberToStar/README.md similarity index 100% rename from Code/papToCode/README.md rename to Code/Steiner/numberToStar/README.md diff --git a/Code/numberToStar/bin/App.class b/Code/Steiner/numberToStar/bin/App.class similarity index 100% rename from Code/numberToStar/bin/App.class rename to Code/Steiner/numberToStar/bin/App.class diff --git a/Code/numberToStar/src/App.java b/Code/Steiner/numberToStar/src/App.java similarity index 100% rename from Code/numberToStar/src/App.java rename to Code/Steiner/numberToStar/src/App.java diff --git a/Code/playGround/.vscode/settings.json b/Code/Steiner/oopUebung1/.vscode/settings.json similarity index 100% rename from Code/playGround/.vscode/settings.json rename to Code/Steiner/oopUebung1/.vscode/settings.json diff --git a/Code/playGround/README.md b/Code/Steiner/oopUebung1/README.md similarity index 100% rename from Code/playGround/README.md rename to Code/Steiner/oopUebung1/README.md diff --git a/Code/Steiner/oopUebung1/bin/App.class b/Code/Steiner/oopUebung1/bin/App.class new file mode 100644 index 0000000..3c31dc7 Binary files /dev/null and b/Code/Steiner/oopUebung1/bin/App.class differ diff --git a/Code/Steiner/oopUebung1/bin/Circle.class b/Code/Steiner/oopUebung1/bin/Circle.class new file mode 100644 index 0000000..df59fb3 Binary files /dev/null and b/Code/Steiner/oopUebung1/bin/Circle.class differ diff --git a/Code/Steiner/oopUebung1/bin/Point.class b/Code/Steiner/oopUebung1/bin/Point.class new file mode 100644 index 0000000..c25c6db Binary files /dev/null and b/Code/Steiner/oopUebung1/bin/Point.class differ diff --git a/Code/Steiner/oopUebung1/src/App.class b/Code/Steiner/oopUebung1/src/App.class new file mode 100644 index 0000000..8158509 Binary files /dev/null and b/Code/Steiner/oopUebung1/src/App.class differ diff --git a/Code/Steiner/oopUebung1/src/App.java b/Code/Steiner/oopUebung1/src/App.java new file mode 100644 index 0000000..9fa3a6e --- /dev/null +++ b/Code/Steiner/oopUebung1/src/App.java @@ -0,0 +1,30 @@ +public class App { + public static void main(String[] args) throws Exception { + + Circle myCircleOne = createCircle(11, 222, 3); + Circle myCircleTwo = createCircle(11, 222, 3); + Circle myCircleThree = createCircle(11, 222, 3); + + printCircle(myCircleOne, "Circle one"); + printCircle(myCircleTwo, "Circle two"); + printCircle(myCircleThree, "Circle three"); + } + + private static void printCircle(Circle circle, String name) { + System.out.println(name + ": "); + System.out.println("Coordinates: " + "(" + circle.point.x + "/" + circle.point.y + ")"); + System.out.println("Radius: " + circle.radius); + System.out.println(""); + + } + + private static Circle createCircle(int x, int y, int radius) { + Circle circle = new Circle(); + + circle.point.x = x; + circle.point.y = y; + circle.radius = radius; + + return circle; + } +} diff --git a/Code/Steiner/oopUebung1/src/Circle.class b/Code/Steiner/oopUebung1/src/Circle.class new file mode 100644 index 0000000..9acc5fd Binary files /dev/null and b/Code/Steiner/oopUebung1/src/Circle.class differ diff --git a/Code/Steiner/oopUebung1/src/Circle.java b/Code/Steiner/oopUebung1/src/Circle.java new file mode 100644 index 0000000..c9c7894 --- /dev/null +++ b/Code/Steiner/oopUebung1/src/Circle.java @@ -0,0 +1,4 @@ +public class Circle { + Point point = new Point(); + int radius; +} diff --git a/Code/Steiner/oopUebung1/src/Point.class b/Code/Steiner/oopUebung1/src/Point.class new file mode 100644 index 0000000..99c737d Binary files /dev/null and b/Code/Steiner/oopUebung1/src/Point.class differ diff --git a/Code/Steiner/oopUebung1/src/Point.java b/Code/Steiner/oopUebung1/src/Point.java new file mode 100644 index 0000000..06e0db7 --- /dev/null +++ b/Code/Steiner/oopUebung1/src/Point.java @@ -0,0 +1,4 @@ +public class Point { + int x; + int y; +} diff --git a/Code/playGround24.1.24/.vscode/settings.json b/Code/Steiner/oopUebung2/.vscode/settings.json similarity index 100% rename from Code/playGround24.1.24/.vscode/settings.json rename to Code/Steiner/oopUebung2/.vscode/settings.json diff --git a/Code/playGround24.1.24/README.md b/Code/Steiner/oopUebung2/README.md similarity index 100% rename from Code/playGround24.1.24/README.md rename to Code/Steiner/oopUebung2/README.md diff --git a/Code/Steiner/oopUebung2/bin/App.class b/Code/Steiner/oopUebung2/bin/App.class new file mode 100644 index 0000000..b552238 Binary files /dev/null and b/Code/Steiner/oopUebung2/bin/App.class differ diff --git a/Code/Steiner/oopUebung2/bin/Car.class b/Code/Steiner/oopUebung2/bin/Car.class new file mode 100644 index 0000000..1d3330c Binary files /dev/null and b/Code/Steiner/oopUebung2/bin/Car.class differ diff --git a/Code/Steiner/oopUebung2/bin/Price.class b/Code/Steiner/oopUebung2/bin/Price.class new file mode 100644 index 0000000..0663152 Binary files /dev/null and b/Code/Steiner/oopUebung2/bin/Price.class differ diff --git a/Code/Steiner/oopUebung2/bin/Wheels.class b/Code/Steiner/oopUebung2/bin/Wheels.class new file mode 100644 index 0000000..1507a3b Binary files /dev/null and b/Code/Steiner/oopUebung2/bin/Wheels.class differ diff --git a/Code/Steiner/oopUebung2/src/App.class b/Code/Steiner/oopUebung2/src/App.class new file mode 100644 index 0000000..d22ac48 Binary files /dev/null and b/Code/Steiner/oopUebung2/src/App.class differ diff --git a/Code/Steiner/oopUebung2/src/App.java b/Code/Steiner/oopUebung2/src/App.java new file mode 100644 index 0000000..5fccb43 --- /dev/null +++ b/Code/Steiner/oopUebung2/src/App.java @@ -0,0 +1,57 @@ +public class App { + + public static void main(String[] args) { + // Define vehicles as a 2D array of objects + Object[][] vehicles = { + { "Tesla", "Model S", 79999, "USD", 4, 19, 2.1 }, + { "BMW", "i8", 147500, "USD", 4, 20, 1.8 }, + { "Ducati", "Panigale V4", 21995, "USD", 2, 17, 3.2 }, + { "Ford", "Mustang GT", 55995, "USD", 4, 20, 2.5 }, + { "Audi", "A4", 39900, "USD", 4, 18, 2.0 }, + { "Harley-Davidson", "Street 750", 7499, "USD", 2, 17, 2.5 }, + { "Mercedes-Benz", "S-Class", 109900, "USD", 4, 19, 2.3 }, + { "Honda", "Civic Type R", 37995, "USD", 4, 20, 2.2 }, + { "Kawasaki", "Ninja ZX-10R", 16799, "USD", 2, 17, 2.8 }, + { "Chevrolet", "Corvette Stingray", 65995, "USD", 4, 20, 2.6 }, + { "Porsche", "911 Carrera", 99900, "USD", 4, 20, 2.4 }, + { "Toyota", "Land Cruiser", 85995, "USD", 4, 18, 2.7 }, + { "BMW", "M3", 71900, "USD", 4, 19, 2.1 }, + { "Harley-Davidson", "XLH Sportster 1200", 9995, "USD", 2, 16, 2.8 } + }; + + // Create an array to hold Car objects + Car[] myCars = new Car[vehicles.length]; + + // Create and store Car objects in the array + for (int i = 0; i < vehicles.length; i++) { + myCars[i] = createCar(vehicles[i]); + } + + // Print out the details of each Car + for (Car car : myCars) { + printCar(car); + } + } + + private static Car createCar(Object[] vehicle) { + Car car = new Car(); + car.brand = (String) vehicle[0]; + car.name = (String) vehicle[1]; + car.price.price = (int) vehicle[2]; + car.price.currency = (String) vehicle[3]; + car.wheel.numberOfWheels = (int) vehicle[4]; + car.wheel.zoll = (int) vehicle[5]; + car.wheel.bar = (double) vehicle[6]; + return car; + } + + private static void printCar(Car car) { + System.out.println("Brand: " + car.brand); + System.out.println("Name: " + car.name); + System.out.println("Price: " + car.price.price + " " + car.price.currency); + System.out.println("Wheels: " + car.wheel.numberOfWheels); + System.out.println("Zoll: " + car.wheel.zoll); + System.out.println("Bar: " + car.wheel.bar); + System.out.println(""); + } +} diff --git a/Code/Steiner/oopUebung2/src/Car.class b/Code/Steiner/oopUebung2/src/Car.class new file mode 100644 index 0000000..70421fc Binary files /dev/null and b/Code/Steiner/oopUebung2/src/Car.class differ diff --git a/Code/Steiner/oopUebung2/src/Car.java b/Code/Steiner/oopUebung2/src/Car.java new file mode 100644 index 0000000..0ca78ca --- /dev/null +++ b/Code/Steiner/oopUebung2/src/Car.java @@ -0,0 +1,6 @@ +public class Car { + String brand; + String name; + Price price = new Price(); + Wheels wheel = new Wheels(); +} diff --git a/Code/Steiner/oopUebung2/src/Price.class b/Code/Steiner/oopUebung2/src/Price.class new file mode 100644 index 0000000..9af15c2 Binary files /dev/null and b/Code/Steiner/oopUebung2/src/Price.class differ diff --git a/Code/Steiner/oopUebung2/src/Price.java b/Code/Steiner/oopUebung2/src/Price.java new file mode 100644 index 0000000..2bd10da --- /dev/null +++ b/Code/Steiner/oopUebung2/src/Price.java @@ -0,0 +1,4 @@ +public class Price { + int price; + String currency; +} diff --git a/Code/Steiner/oopUebung2/src/Wheels.class b/Code/Steiner/oopUebung2/src/Wheels.class new file mode 100644 index 0000000..8b1f5d1 Binary files /dev/null and b/Code/Steiner/oopUebung2/src/Wheels.class differ diff --git a/Code/Steiner/oopUebung2/src/Wheels.java b/Code/Steiner/oopUebung2/src/Wheels.java new file mode 100644 index 0000000..b24f057 --- /dev/null +++ b/Code/Steiner/oopUebung2/src/Wheels.java @@ -0,0 +1,5 @@ +public class Wheels { + int numberOfWheels; + int zoll; + double bar; +} diff --git a/Code/pleaseGodHaveMercy/.vscode/settings.json b/Code/Steiner/oopUebung3/.vscode/settings.json similarity index 100% rename from Code/pleaseGodHaveMercy/.vscode/settings.json rename to Code/Steiner/oopUebung3/.vscode/settings.json diff --git a/Code/pleaseGodHaveMercy/README.md b/Code/Steiner/oopUebung3/README.md similarity index 100% rename from Code/pleaseGodHaveMercy/README.md rename to Code/Steiner/oopUebung3/README.md diff --git a/Code/Steiner/oopUebung3/bin/App.class b/Code/Steiner/oopUebung3/bin/App.class new file mode 100644 index 0000000..d368d09 Binary files /dev/null and b/Code/Steiner/oopUebung3/bin/App.class differ diff --git a/Code/Steiner/oopUebung3/bin/extractName.class b/Code/Steiner/oopUebung3/bin/extractName.class new file mode 100644 index 0000000..031e3c6 Binary files /dev/null and b/Code/Steiner/oopUebung3/bin/extractName.class differ diff --git a/Code/Steiner/oopUebung3/src/App.class b/Code/Steiner/oopUebung3/src/App.class new file mode 100644 index 0000000..83d54dc Binary files /dev/null and b/Code/Steiner/oopUebung3/src/App.class differ diff --git a/Code/Steiner/oopUebung3/src/App.java b/Code/Steiner/oopUebung3/src/App.java new file mode 100644 index 0000000..b041b0d --- /dev/null +++ b/Code/Steiner/oopUebung3/src/App.java @@ -0,0 +1,16 @@ +public class App { + + public static void main(String[] args) { + String fullName1 = "Peter Muster"; + String fullName3 = "James Cock"; + + extractName.splitName(fullName1); + + System.out.println("First Name: " + extractName.firstName); + System.out.println("Last Name: " + extractName.lastName); + + extractName.splitName(fullName3); + System.out.println("First Name: " + extractName.firstName); + System.out.println("Last Name: " + extractName.lastName); + } +} diff --git a/Code/Steiner/oopUebung3/src/extractName.class b/Code/Steiner/oopUebung3/src/extractName.class new file mode 100644 index 0000000..6e13920 Binary files /dev/null and b/Code/Steiner/oopUebung3/src/extractName.class differ diff --git a/Code/Steiner/oopUebung3/src/extractName.java b/Code/Steiner/oopUebung3/src/extractName.java new file mode 100644 index 0000000..12fb761 --- /dev/null +++ b/Code/Steiner/oopUebung3/src/extractName.java @@ -0,0 +1,17 @@ + +public class extractName { + public static String firstName; + public static String lastName; + + public static void splitName(String fullName) { + + String[] parts = fullName.split(" "); + + if (parts.length == 2) { + firstName = parts[0]; + lastName = parts[1]; + } else { + System.out.println("Error"); + } + } +} diff --git a/Code/randomRandomizerTask/.vscode/settings.json b/Code/Steiner/oop_theorie_1/.vscode/settings.json similarity index 100% rename from Code/randomRandomizerTask/.vscode/settings.json rename to Code/Steiner/oop_theorie_1/.vscode/settings.json diff --git a/Code/randomRandomizerTask/README.md b/Code/Steiner/oop_theorie_1/README.md similarity index 100% rename from Code/randomRandomizerTask/README.md rename to Code/Steiner/oop_theorie_1/README.md diff --git a/Code/Steiner/oop_theorie_1/bin/App.class b/Code/Steiner/oop_theorie_1/bin/App.class new file mode 100644 index 0000000..c9e5d99 Binary files /dev/null and b/Code/Steiner/oop_theorie_1/bin/App.class differ diff --git a/Code/Steiner/oop_theorie_1/bin/Date.class b/Code/Steiner/oop_theorie_1/bin/Date.class new file mode 100644 index 0000000..c8d0908 Binary files /dev/null and b/Code/Steiner/oop_theorie_1/bin/Date.class differ diff --git a/Code/Steiner/oop_theorie_1/bin/Time.class b/Code/Steiner/oop_theorie_1/bin/Time.class new file mode 100644 index 0000000..5a4e7c3 Binary files /dev/null and b/Code/Steiner/oop_theorie_1/bin/Time.class differ diff --git a/Code/Steiner/oop_theorie_1/src/App.class b/Code/Steiner/oop_theorie_1/src/App.class new file mode 100644 index 0000000..423facf Binary files /dev/null and b/Code/Steiner/oop_theorie_1/src/App.class differ diff --git a/Code/Steiner/oop_theorie_1/src/App.java b/Code/Steiner/oop_theorie_1/src/App.java new file mode 100644 index 0000000..506b6bb --- /dev/null +++ b/Code/Steiner/oop_theorie_1/src/App.java @@ -0,0 +1,16 @@ +// App.java +public class App { + public static void main(String[] args) { + Date my_birthday = new Date(); + + // Input birthday using the Date class method + my_birthday.inputBirthday(); + + // Print the entered birthday + System.out.println("Your birthday: " + my_birthday.day + " " + my_birthday.month + " " + my_birthday.year); + + // Calculate and print the age + int age = my_birthday.calculateAge(); + System.out.println("Your age is: " + age); + } +} diff --git a/Code/Steiner/oop_theorie_1/src/Date.class b/Code/Steiner/oop_theorie_1/src/Date.class new file mode 100644 index 0000000..d7ca2a6 Binary files /dev/null and b/Code/Steiner/oop_theorie_1/src/Date.class differ diff --git a/Code/Steiner/oop_theorie_1/src/Date.java b/Code/Steiner/oop_theorie_1/src/Date.java new file mode 100644 index 0000000..9d59f45 --- /dev/null +++ b/Code/Steiner/oop_theorie_1/src/Date.java @@ -0,0 +1,66 @@ +import java.time.LocalDate; +import java.time.Period; +import java.time.Month; +import java.util.Locale; +import java.util.Scanner; + +public class Date { + public int day; + public String month; + public int year; + + // Method to get the current date as a formatted string + public String getCurrentDate() { + LocalDate now = LocalDate.now(); // Get current date only + return now.toString(); + } + + // Method to calculate the age based on the birthday + public int calculateAge() { + int monthNumber = getMonthNumber(); + if (monthNumber == -1) { + throw new IllegalArgumentException("Invalid month name: " + month); + } + + LocalDate birthDate = LocalDate.of(year, monthNumber, day); + LocalDate currentDate = LocalDate.now(); + return Period.between(birthDate, currentDate).getYears(); + } + + // Method to convert the month name to a month number + private int getMonthNumber() { + try { + Month monthEnum = Month.valueOf(month.toUpperCase(Locale.ENGLISH)); + return monthEnum.getValue(); + } catch (IllegalArgumentException e) { + return -1; + } + } + + // Method to input and set the date fields (day, month, year) + public void inputBirthday() { + Scanner scan = new Scanner(System.in); + + // Input for day + System.out.println("Enter your birth day (e.g., 16):"); + this.day = scan.nextInt(); + + // Input for month with validation loop + scan.nextLine(); // Consume the newline + boolean validMonth = false; + while (!validMonth) { + System.out.println("Enter your birth month (e.g., November):"); + this.month = scan.nextLine(); + + if (getMonthNumber() != -1) { + validMonth = true; + } else { + System.out.println("Invalid month name. Please try again."); + } + } + + // Input for year + System.out.println("Enter your birth year (e.g., 2005):"); + this.year = scan.nextInt(); + } +} diff --git a/Code/Steiner/oop_theorie_1/src/Time.class b/Code/Steiner/oop_theorie_1/src/Time.class new file mode 100644 index 0000000..ac35cc9 Binary files /dev/null and b/Code/Steiner/oop_theorie_1/src/Time.class differ diff --git a/Code/Steiner/oop_theorie_1/src/Time.java b/Code/Steiner/oop_theorie_1/src/Time.java new file mode 100644 index 0000000..9d0b5db --- /dev/null +++ b/Code/Steiner/oop_theorie_1/src/Time.java @@ -0,0 +1,13 @@ +import java.time.LocalDateTime; + +public class Time { + public static void main(String[] args) { + // Get the current date and time + LocalDateTime now = LocalDateTime.now(); + + // Format the current date and time + + // Print the formatted date and time + System.out.println("Current date and time: " + now); + } +} diff --git a/Code/refacorinII/.vscode/settings.json b/Code/Steiner/oppUebung4/.vscode/settings.json similarity index 100% rename from Code/refacorinII/.vscode/settings.json rename to Code/Steiner/oppUebung4/.vscode/settings.json diff --git a/Code/refacorinII/README.md b/Code/Steiner/oppUebung4/README.md similarity index 100% rename from Code/refacorinII/README.md rename to Code/Steiner/oppUebung4/README.md diff --git a/Code/Steiner/oppUebung4/bin/App.class b/Code/Steiner/oppUebung4/bin/App.class new file mode 100644 index 0000000..9f2b697 Binary files /dev/null and b/Code/Steiner/oppUebung4/bin/App.class differ diff --git a/Code/Steiner/oppUebung4/bin/Storage.class b/Code/Steiner/oppUebung4/bin/Storage.class new file mode 100644 index 0000000..73e7c72 Binary files /dev/null and b/Code/Steiner/oppUebung4/bin/Storage.class differ diff --git a/Code/Steiner/oppUebung4/bin/Unit.class b/Code/Steiner/oppUebung4/bin/Unit.class new file mode 100644 index 0000000..d519a7d Binary files /dev/null and b/Code/Steiner/oppUebung4/bin/Unit.class differ diff --git a/Code/Steiner/oppUebung4/src/App.class b/Code/Steiner/oppUebung4/src/App.class new file mode 100644 index 0000000..0e58b2b Binary files /dev/null and b/Code/Steiner/oppUebung4/src/App.class differ diff --git a/Code/Steiner/oppUebung4/src/App.java b/Code/Steiner/oppUebung4/src/App.java new file mode 100644 index 0000000..8c2a09e --- /dev/null +++ b/Code/Steiner/oppUebung4/src/App.java @@ -0,0 +1,51 @@ +public class App { + public static void main(String[] args) throws Exception { + Object[][] article = { + { 1, "Banana", 5, "Stk" }, + { 23, "Flour", 2, "KG" }, + { 12, "Milk", 4, "Liters" }, + { 34, "Apple", 10, "Stk" }, + { 45, "Sugar", 1, "KG" }, + { 67, "Eggs", 12, "Stk" }, + { 89, "Rice", 5, "KG" }, + { 21, "Butter", 2, "Packs" }, + { 78, "Orange Juice", 3, "Liters" }, + { 56, "Bread", 2, "Loaves" }, + { 90, "Cheese", 1, "KG" }, + { 32, "Tomato", 8, "Stk" }, + { 11, "Salt", 1, "KG" } + + }; + + // Create an array to hold Storage objects + Storage[] myStorage = new Storage[article.length]; + + // Create and store Storage objects in the array + for (int i = 0; i < article.length; i++) { + myStorage[i] = createStorage(article[i]); + } + + // Print out the details of each Item + for (Storage storage : myStorage) { + printItems(storage); + } + + } + + private static Storage createStorage(Object[] article) { + Storage storage = new Storage(); + storage.storageId = (int) article[0]; + storage.name = (String) article[1]; + storage.unit.quantaty = (int) article[2]; + storage.unit.unit = (String) article[3]; + return storage; + } + + private static void printItems(Storage storage) { + System.out.println("Item on shelf: " + storage.storageId); + System.out.println("Item name: " + storage.name); + System.out.println("Item(s) on stock: " + storage.unit.quantaty); + System.out.println("Measured unit: " + storage.unit.unit); + System.out.println("-----------------------------------------"); + } +} diff --git a/Code/Steiner/oppUebung4/src/Storage.class b/Code/Steiner/oppUebung4/src/Storage.class new file mode 100644 index 0000000..9995499 Binary files /dev/null and b/Code/Steiner/oppUebung4/src/Storage.class differ diff --git a/Code/Steiner/oppUebung4/src/Storage.java b/Code/Steiner/oppUebung4/src/Storage.java new file mode 100644 index 0000000..baf67fa --- /dev/null +++ b/Code/Steiner/oppUebung4/src/Storage.java @@ -0,0 +1,5 @@ +public class Storage { + int storageId; + String name; + Unit unit = new Unit(); +} diff --git a/Code/Steiner/oppUebung4/src/Unit.class b/Code/Steiner/oppUebung4/src/Unit.class new file mode 100644 index 0000000..401981d Binary files /dev/null and b/Code/Steiner/oppUebung4/src/Unit.class differ diff --git a/Code/Steiner/oppUebung4/src/Unit.java b/Code/Steiner/oppUebung4/src/Unit.java new file mode 100644 index 0000000..21f91e8 --- /dev/null +++ b/Code/Steiner/oppUebung4/src/Unit.java @@ -0,0 +1,4 @@ +public class Unit { + int quantaty; + String unit; +} diff --git a/Code/starSigns/.vscode/settings.json b/Code/Steiner/papToCode/.vscode/settings.json similarity index 100% rename from Code/starSigns/.vscode/settings.json rename to Code/Steiner/papToCode/.vscode/settings.json diff --git a/Code/starSigns/README.md b/Code/Steiner/papToCode/README.md similarity index 100% rename from Code/starSigns/README.md rename to Code/Steiner/papToCode/README.md diff --git a/Code/papToCode/bin/App.class b/Code/Steiner/papToCode/bin/App.class similarity index 100% rename from Code/papToCode/bin/App.class rename to Code/Steiner/papToCode/bin/App.class diff --git a/Code/papToCode/src/App.java b/Code/Steiner/papToCode/src/App.java similarity index 100% rename from Code/papToCode/src/App.java rename to Code/Steiner/papToCode/src/App.java diff --git a/Code/summeFuerArme/.vscode/settings.json b/Code/Steiner/playGround/.vscode/settings.json similarity index 100% rename from Code/summeFuerArme/.vscode/settings.json rename to Code/Steiner/playGround/.vscode/settings.json diff --git a/Code/summeFuerArme/README.md b/Code/Steiner/playGround/README.md similarity index 100% rename from Code/summeFuerArme/README.md rename to Code/Steiner/playGround/README.md diff --git a/Code/playGround/bin/App.class b/Code/Steiner/playGround/bin/App.class similarity index 100% rename from Code/playGround/bin/App.class rename to Code/Steiner/playGround/bin/App.class diff --git a/Code/playGround/src/App.java b/Code/Steiner/playGround/src/App.java similarity index 100% rename from Code/playGround/src/App.java rename to Code/Steiner/playGround/src/App.java diff --git a/Code/swapArray/.vscode/settings.json b/Code/Steiner/playGround24.1.24/.vscode/settings.json similarity index 100% rename from Code/swapArray/.vscode/settings.json rename to Code/Steiner/playGround24.1.24/.vscode/settings.json diff --git a/Code/swapArray/README.md b/Code/Steiner/playGround24.1.24/README.md similarity index 100% rename from Code/swapArray/README.md rename to Code/Steiner/playGround24.1.24/README.md diff --git a/Code/Steiner/playGround24.1.24/bin/App.class b/Code/Steiner/playGround24.1.24/bin/App.class new file mode 100644 index 0000000..baa6c67 Binary files /dev/null and b/Code/Steiner/playGround24.1.24/bin/App.class differ diff --git a/Code/playGround24.1.24/src/App.java b/Code/Steiner/playGround24.1.24/src/App.java similarity index 100% rename from Code/playGround24.1.24/src/App.java rename to Code/Steiner/playGround24.1.24/src/App.java diff --git a/Code/sysOutInput/.vscode/settings.json b/Code/Steiner/pleaseGodHaveMercy/.vscode/settings.json similarity index 100% rename from Code/sysOutInput/.vscode/settings.json rename to Code/Steiner/pleaseGodHaveMercy/.vscode/settings.json diff --git a/Code/sysOutInput/README.md b/Code/Steiner/pleaseGodHaveMercy/README.md similarity index 100% rename from Code/sysOutInput/README.md rename to Code/Steiner/pleaseGodHaveMercy/README.md diff --git a/Code/pleaseGodHaveMercy/bin/App.class b/Code/Steiner/pleaseGodHaveMercy/bin/App.class similarity index 100% rename from Code/pleaseGodHaveMercy/bin/App.class rename to Code/Steiner/pleaseGodHaveMercy/bin/App.class diff --git a/Code/pleaseGodHaveMercy/src/App.java b/Code/Steiner/pleaseGodHaveMercy/src/App.java similarity index 100% rename from Code/pleaseGodHaveMercy/src/App.java rename to Code/Steiner/pleaseGodHaveMercy/src/App.java diff --git a/Code/test/.vscode/settings.json b/Code/Steiner/randomRandomizerTask/.vscode/settings.json similarity index 100% rename from Code/test/.vscode/settings.json rename to Code/Steiner/randomRandomizerTask/.vscode/settings.json diff --git a/Code/test/README.md b/Code/Steiner/randomRandomizerTask/README.md similarity index 100% rename from Code/test/README.md rename to Code/Steiner/randomRandomizerTask/README.md diff --git a/Code/randomRandomizerTask/bin/App.class b/Code/Steiner/randomRandomizerTask/bin/App.class similarity index 100% rename from Code/randomRandomizerTask/bin/App.class rename to Code/Steiner/randomRandomizerTask/bin/App.class diff --git a/Code/randomRandomizerTask/src/App.java b/Code/Steiner/randomRandomizerTask/src/App.java similarity index 100% rename from Code/randomRandomizerTask/src/App.java rename to Code/Steiner/randomRandomizerTask/src/App.java diff --git a/Code/testModulo/.vscode/settings.json b/Code/Steiner/refacorinII/.vscode/settings.json similarity index 100% rename from Code/testModulo/.vscode/settings.json rename to Code/Steiner/refacorinII/.vscode/settings.json diff --git a/Code/testModulo/README.md b/Code/Steiner/refacorinII/README.md similarity index 100% rename from Code/testModulo/README.md rename to Code/Steiner/refacorinII/README.md diff --git a/Code/refacorinII/bin/App.class b/Code/Steiner/refacorinII/bin/App.class similarity index 100% rename from Code/refacorinII/bin/App.class rename to Code/Steiner/refacorinII/bin/App.class diff --git a/Code/refacorinII/src/App.java b/Code/Steiner/refacorinII/src/App.java similarity index 100% rename from Code/refacorinII/src/App.java rename to Code/Steiner/refacorinII/src/App.java diff --git a/Code/testTestTest/.vscode/settings.json b/Code/Steiner/reverseNumber/.vscode/settings.json similarity index 100% rename from Code/testTestTest/.vscode/settings.json rename to Code/Steiner/reverseNumber/.vscode/settings.json diff --git a/Code/testTestTest/README.md b/Code/Steiner/reverseNumber/README.md similarity index 100% rename from Code/testTestTest/README.md rename to Code/Steiner/reverseNumber/README.md diff --git a/Code/Steiner/reverseNumber/bin/App.class b/Code/Steiner/reverseNumber/bin/App.class new file mode 100644 index 0000000..dbe6743 Binary files /dev/null and b/Code/Steiner/reverseNumber/bin/App.class differ diff --git a/Code/Steiner/reverseNumber/src/App.class b/Code/Steiner/reverseNumber/src/App.class new file mode 100644 index 0000000..4e8f4a9 Binary files /dev/null and b/Code/Steiner/reverseNumber/src/App.class differ diff --git a/Code/Steiner/reverseNumber/src/App.java b/Code/Steiner/reverseNumber/src/App.java new file mode 100644 index 0000000..0bf1e72 --- /dev/null +++ b/Code/Steiner/reverseNumber/src/App.java @@ -0,0 +1,18 @@ +public class App { + public static int reverse(int number) { + int reversed = 0; + while (number != 0) { + int remainder = number % 10; + reversed = reversed * 10 + remainder; + number = number / 10; + } + return reversed; + } + + public static void main(String[] args) { + int number = 12345; + int reversed = reverse(number); + System.out.println("The number is: " + number); + System.out.println("The reversed number is: " + reversed); + } +} diff --git a/Code/theMostBasicHash/.vscode/settings.json b/Code/Steiner/rgbColorCalculator/.vscode/settings.json similarity index 100% rename from Code/theMostBasicHash/.vscode/settings.json rename to Code/Steiner/rgbColorCalculator/.vscode/settings.json diff --git a/Code/theMostBasicHash/README.md b/Code/Steiner/rgbColorCalculator/README.md similarity index 100% rename from Code/theMostBasicHash/README.md rename to Code/Steiner/rgbColorCalculator/README.md diff --git a/Code/Steiner/rgbColorCalculator/bin/App.class b/Code/Steiner/rgbColorCalculator/bin/App.class new file mode 100644 index 0000000..d473d21 Binary files /dev/null and b/Code/Steiner/rgbColorCalculator/bin/App.class differ diff --git a/Code/Steiner/rgbColorCalculator/src/App.class b/Code/Steiner/rgbColorCalculator/src/App.class new file mode 100644 index 0000000..2a07b40 Binary files /dev/null and b/Code/Steiner/rgbColorCalculator/src/App.class differ diff --git a/Code/Steiner/rgbColorCalculator/src/App.java b/Code/Steiner/rgbColorCalculator/src/App.java new file mode 100644 index 0000000..7748d19 --- /dev/null +++ b/Code/Steiner/rgbColorCalculator/src/App.java @@ -0,0 +1,44 @@ +public class App { + public static void main(String[] args) throws Exception { + // Testing Values + double black[] = { 0.0, 0.0, 0.0 }; + double grey[] = { 0.5, 0.5, 0.5 }; + double white[] = { 1, 1, 1 }; + + procentTo255(black); + procentTo255(grey); + procentTo255(white); + + final int BLACK = oneInteger(black); + final int GREY = oneInteger(grey); + final int WHITE = oneInteger(white); + + printAll(BLACK, GREY, WHITE); + } + + public static void procentTo255(double[] color) { + int temp = 0; + for (int i = 0; i < 3; i++) { + if (color[i] == 1.0) { + temp = 255; + } else { + temp = (int) (color[i] * 256); + } + color[i] = temp; + } + } + + public static int oneInteger(double[] color) { + int temp = 0; + temp += color[0] * (256 * 256); + temp += color[1] * (256); + temp += color[2]; + return temp; + } + + public static void printAll(int black, int grey, int white) { + System.out.println("Black: " + black); + System.out.println("Grey: " + grey); + System.out.println("White: " + white); + } +} diff --git a/Code/tiereGeräusche/.vscode/settings.json b/Code/Steiner/starSigns/.vscode/settings.json similarity index 100% rename from Code/tiereGeräusche/.vscode/settings.json rename to Code/Steiner/starSigns/.vscode/settings.json diff --git a/Code/tiereGeräusche/README.md b/Code/Steiner/starSigns/README.md similarity index 100% rename from Code/tiereGeräusche/README.md rename to Code/Steiner/starSigns/README.md diff --git a/Code/starSigns/bin/App.class b/Code/Steiner/starSigns/bin/App.class similarity index 100% rename from Code/starSigns/bin/App.class rename to Code/Steiner/starSigns/bin/App.class diff --git a/Code/starSigns/src/App.java b/Code/Steiner/starSigns/src/App.java similarity index 100% rename from Code/starSigns/src/App.java rename to Code/Steiner/starSigns/src/App.java diff --git a/Code/uhrZeiten+++$/.vscode/settings.json b/Code/Steiner/summeFuerArme/.vscode/settings.json similarity index 100% rename from Code/uhrZeiten+++$/.vscode/settings.json rename to Code/Steiner/summeFuerArme/.vscode/settings.json diff --git a/Code/uhrZeiten+++$/README.md b/Code/Steiner/summeFuerArme/README.md similarity index 100% rename from Code/uhrZeiten+++$/README.md rename to Code/Steiner/summeFuerArme/README.md diff --git a/Code/summeFuerArme/src/App.java b/Code/Steiner/summeFuerArme/src/App.java similarity index 100% rename from Code/summeFuerArme/src/App.java rename to Code/Steiner/summeFuerArme/src/App.java diff --git a/Code/uhrZeiten++/.vscode/settings.json b/Code/Steiner/swapArray/.vscode/settings.json similarity index 100% rename from Code/uhrZeiten++/.vscode/settings.json rename to Code/Steiner/swapArray/.vscode/settings.json diff --git a/Code/uhrZeiten++/README.md b/Code/Steiner/swapArray/README.md similarity index 100% rename from Code/uhrZeiten++/README.md rename to Code/Steiner/swapArray/README.md diff --git a/Code/swapArray/bin/App.class b/Code/Steiner/swapArray/bin/App.class similarity index 100% rename from Code/swapArray/bin/App.class rename to Code/Steiner/swapArray/bin/App.class diff --git a/Code/swapArray/src/App.java b/Code/Steiner/swapArray/src/App.java similarity index 100% rename from Code/swapArray/src/App.java rename to Code/Steiner/swapArray/src/App.java diff --git a/Code/whileToFor/.vscode/settings.json b/Code/Steiner/sysOutInput/.vscode/settings.json similarity index 100% rename from Code/whileToFor/.vscode/settings.json rename to Code/Steiner/sysOutInput/.vscode/settings.json diff --git a/Code/whileToFor/README.md b/Code/Steiner/sysOutInput/README.md similarity index 100% rename from Code/whileToFor/README.md rename to Code/Steiner/sysOutInput/README.md diff --git a/Code/sysOutInput/bin/App.class b/Code/Steiner/sysOutInput/bin/App.class similarity index 100% rename from Code/sysOutInput/bin/App.class rename to Code/Steiner/sysOutInput/bin/App.class diff --git a/Code/sysOutInput/src/App.java b/Code/Steiner/sysOutInput/src/App.java similarity index 100% rename from Code/sysOutInput/src/App.java rename to Code/Steiner/sysOutInput/src/App.java diff --git a/Code/zeroOneNine/.vscode/settings.json b/Code/Steiner/test/.vscode/settings.json similarity index 100% rename from Code/zeroOneNine/.vscode/settings.json rename to Code/Steiner/test/.vscode/settings.json diff --git a/Code/zeroOneNine/README.md b/Code/Steiner/test/README.md similarity index 100% rename from Code/zeroOneNine/README.md rename to Code/Steiner/test/README.md diff --git a/Code/test/bin/App.class b/Code/Steiner/test/bin/App.class similarity index 100% rename from Code/test/bin/App.class rename to Code/Steiner/test/bin/App.class diff --git a/Code/test/src/App.java b/Code/Steiner/test/src/App.java similarity index 100% rename from Code/test/src/App.java rename to Code/Steiner/test/src/App.java diff --git a/Code/Steiner/testModulo/.vscode/settings.json b/Code/Steiner/testModulo/.vscode/settings.json new file mode 100644 index 0000000..e112a70 --- /dev/null +++ b/Code/Steiner/testModulo/.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/testModulo/README.md b/Code/Steiner/testModulo/README.md new file mode 100644 index 0000000..7c03a53 --- /dev/null +++ b/Code/Steiner/testModulo/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/testModulo/bin/App.class b/Code/Steiner/testModulo/bin/App.class similarity index 100% rename from Code/testModulo/bin/App.class rename to Code/Steiner/testModulo/bin/App.class diff --git a/Code/testModulo/src/App.class b/Code/Steiner/testModulo/src/App.class similarity index 100% rename from Code/testModulo/src/App.class rename to Code/Steiner/testModulo/src/App.class diff --git a/Code/testModulo/src/App.java b/Code/Steiner/testModulo/src/App.java similarity index 100% rename from Code/testModulo/src/App.java rename to Code/Steiner/testModulo/src/App.java diff --git a/Code/Steiner/testTestTest/.vscode/settings.json b/Code/Steiner/testTestTest/.vscode/settings.json new file mode 100644 index 0000000..e112a70 --- /dev/null +++ b/Code/Steiner/testTestTest/.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/testTestTest/README.md b/Code/Steiner/testTestTest/README.md new file mode 100644 index 0000000..7c03a53 --- /dev/null +++ b/Code/Steiner/testTestTest/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/testTestTest/bin/App.class b/Code/Steiner/testTestTest/bin/App.class similarity index 100% rename from Code/testTestTest/bin/App.class rename to Code/Steiner/testTestTest/bin/App.class diff --git a/Code/testTestTest/src/App.java b/Code/Steiner/testTestTest/src/App.java similarity index 100% rename from Code/testTestTest/src/App.java rename to Code/Steiner/testTestTest/src/App.java diff --git a/Code/Steiner/theMostBasicHash/.vscode/settings.json b/Code/Steiner/theMostBasicHash/.vscode/settings.json new file mode 100644 index 0000000..e112a70 --- /dev/null +++ b/Code/Steiner/theMostBasicHash/.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/theMostBasicHash/README.md b/Code/Steiner/theMostBasicHash/README.md new file mode 100644 index 0000000..7c03a53 --- /dev/null +++ b/Code/Steiner/theMostBasicHash/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/theMostBasicHash/bin/App.class b/Code/Steiner/theMostBasicHash/bin/App.class similarity index 100% rename from Code/theMostBasicHash/bin/App.class rename to Code/Steiner/theMostBasicHash/bin/App.class diff --git a/Code/theMostBasicHash/src/App.java b/Code/Steiner/theMostBasicHash/src/App.java similarity index 100% rename from Code/theMostBasicHash/src/App.java rename to Code/Steiner/theMostBasicHash/src/App.java diff --git a/Code/Steiner/tiereGeräusche/.vscode/settings.json b/Code/Steiner/tiereGeräusche/.vscode/settings.json new file mode 100644 index 0000000..e112a70 --- /dev/null +++ b/Code/Steiner/tiereGeräusche/.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/tiereGeräusche/README.md b/Code/Steiner/tiereGeräusche/README.md new file mode 100644 index 0000000..7c03a53 --- /dev/null +++ b/Code/Steiner/tiereGeräusche/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/tiereGeräusche/bin/App.class b/Code/Steiner/tiereGeräusche/bin/App.class similarity index 100% rename from Code/tiereGeräusche/bin/App.class rename to Code/Steiner/tiereGeräusche/bin/App.class diff --git a/Code/tiereGeräusche/src/App.java b/Code/Steiner/tiereGeräusche/src/App.java similarity index 100% rename from Code/tiereGeräusche/src/App.java rename to Code/Steiner/tiereGeräusche/src/App.java diff --git a/Code/Steiner/uhrZeiten+++$/.vscode/settings.json b/Code/Steiner/uhrZeiten+++$/.vscode/settings.json new file mode 100644 index 0000000..e112a70 --- /dev/null +++ b/Code/Steiner/uhrZeiten+++$/.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/uhrZeiten+++$/README.md b/Code/Steiner/uhrZeiten+++$/README.md new file mode 100644 index 0000000..7c03a53 --- /dev/null +++ b/Code/Steiner/uhrZeiten+++$/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/uhrZeiten+++$/bin/App.class b/Code/Steiner/uhrZeiten+++$/bin/App.class similarity index 100% rename from Code/uhrZeiten+++$/bin/App.class rename to Code/Steiner/uhrZeiten+++$/bin/App.class diff --git a/Code/uhrZeiten+++$/src/App.java b/Code/Steiner/uhrZeiten+++$/src/App.java similarity index 100% rename from Code/uhrZeiten+++$/src/App.java rename to Code/Steiner/uhrZeiten+++$/src/App.java diff --git a/Code/Steiner/uhrZeiten++/.vscode/settings.json b/Code/Steiner/uhrZeiten++/.vscode/settings.json new file mode 100644 index 0000000..e112a70 --- /dev/null +++ b/Code/Steiner/uhrZeiten++/.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/uhrZeiten++/README.md b/Code/Steiner/uhrZeiten++/README.md new file mode 100644 index 0000000..7c03a53 --- /dev/null +++ b/Code/Steiner/uhrZeiten++/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/uhrZeiten++/bin/App.class b/Code/Steiner/uhrZeiten++/bin/App.class similarity index 100% rename from Code/uhrZeiten++/bin/App.class rename to Code/Steiner/uhrZeiten++/bin/App.class diff --git a/Code/uhrZeiten++/src/App.java b/Code/Steiner/uhrZeiten++/src/App.java similarity index 100% rename from Code/uhrZeiten++/src/App.java rename to Code/Steiner/uhrZeiten++/src/App.java diff --git a/Code/Steiner/whileToFor/.vscode/settings.json b/Code/Steiner/whileToFor/.vscode/settings.json new file mode 100644 index 0000000..e112a70 --- /dev/null +++ b/Code/Steiner/whileToFor/.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/whileToFor/README.md b/Code/Steiner/whileToFor/README.md new file mode 100644 index 0000000..7c03a53 --- /dev/null +++ b/Code/Steiner/whileToFor/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/whileToFor/bin/App.class b/Code/Steiner/whileToFor/bin/App.class similarity index 100% rename from Code/whileToFor/bin/App.class rename to Code/Steiner/whileToFor/bin/App.class diff --git a/Code/whileToFor/src/App.java b/Code/Steiner/whileToFor/src/App.java similarity index 100% rename from Code/whileToFor/src/App.java rename to Code/Steiner/whileToFor/src/App.java diff --git a/Code/Steiner/zeroOneNine/.vscode/settings.json b/Code/Steiner/zeroOneNine/.vscode/settings.json new file mode 100644 index 0000000..e112a70 --- /dev/null +++ b/Code/Steiner/zeroOneNine/.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/zeroOneNine/README.md b/Code/Steiner/zeroOneNine/README.md new file mode 100644 index 0000000..7c03a53 --- /dev/null +++ b/Code/Steiner/zeroOneNine/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/zeroOneNine/bin/App.class b/Code/Steiner/zeroOneNine/bin/App.class similarity index 100% rename from Code/zeroOneNine/bin/App.class rename to Code/Steiner/zeroOneNine/bin/App.class diff --git a/Code/zeroOneNine/src/App.java b/Code/Steiner/zeroOneNine/src/App.java similarity index 100% rename from Code/zeroOneNine/src/App.java rename to Code/Steiner/zeroOneNine/src/App.java diff --git a/Code/ost/_00_hello_world/pom.xml b/Code/ost/_00_hello_world/pom.xml new file mode 100644 index 0000000..d1c56fd --- /dev/null +++ b/Code/ost/_00_hello_world/pom.xml @@ -0,0 +1,46 @@ + + 4.0.0 + com.example + _00_hello_world + 1.0-SNAPSHOT + + UTF-8 + 11 + 11 + + + + org.openjfx + javafx-controls + 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/_00_hello_world/src/main/java/com/example/App.java b/Code/ost/_00_hello_world/src/main/java/com/example/App.java new file mode 100644 index 0000000..aea1f3a --- /dev/null +++ b/Code/ost/_00_hello_world/src/main/java/com/example/App.java @@ -0,0 +1,29 @@ +package com.example; + +import javafx.application.Application; +import javafx.scene.Scene; +import javafx.scene.control.Label; +import javafx.scene.layout.StackPane; +import javafx.stage.Stage; + +/** + * JavaFX App + */ +public class App extends Application { + + @Override + public void start(Stage stage) { + var javaVersion = SystemInfo.javaVersion(); + var javafxVersion = SystemInfo.javafxVersion(); + + var label = new Label("Hello World"); + var scene = new Scene(new StackPane(label), 100, 100); + stage.setScene(scene); + stage.show(); + } + + public static void main(String[] args) { + launch(); + } + +} \ No newline at end of file diff --git a/Code/ost/_00_hello_world/src/main/java/com/example/SystemInfo.java b/Code/ost/_00_hello_world/src/main/java/com/example/SystemInfo.java new file mode 100644 index 0000000..b566a3e --- /dev/null +++ b/Code/ost/_00_hello_world/src/main/java/com/example/SystemInfo.java @@ -0,0 +1,13 @@ +package com.example; + +public class SystemInfo { + + public static String javaVersion() { + return System.getProperty("java.version"); + } + + public static String javafxVersion() { + return System.getProperty("javafx.version"); + } + +} \ No newline at end of file diff --git a/Code/ost/_00_hello_world/src/main/java/module-info.java b/Code/ost/_00_hello_world/src/main/java/module-info.java new file mode 100644 index 0000000..5918012 --- /dev/null +++ b/Code/ost/_00_hello_world/src/main/java/module-info.java @@ -0,0 +1,4 @@ +module com.example { + requires javafx.controls; + exports com.example; +} diff --git a/Code/ost/_00_hello_world/target/classes/com/example/App.class b/Code/ost/_00_hello_world/target/classes/com/example/App.class new file mode 100644 index 0000000..afbdcb5 Binary files /dev/null and b/Code/ost/_00_hello_world/target/classes/com/example/App.class differ diff --git a/Code/ost/_00_hello_world/target/classes/com/example/SystemInfo.class b/Code/ost/_00_hello_world/target/classes/com/example/SystemInfo.class new file mode 100644 index 0000000..ae53960 Binary files /dev/null and b/Code/ost/_00_hello_world/target/classes/com/example/SystemInfo.class differ diff --git a/Code/ost/_00_hello_world/target/classes/module-info.class b/Code/ost/_00_hello_world/target/classes/module-info.class new file mode 100644 index 0000000..fb805fd Binary files /dev/null and b/Code/ost/_00_hello_world/target/classes/module-info.class differ diff --git a/Code/ost/_00_hello_world/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/Code/ost/_00_hello_world/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..e69de29 diff --git a/Code/ost/_00_hello_world/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/Code/ost/_00_hello_world/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..396ca5c --- /dev/null +++ b/Code/ost/_00_hello_world/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,3 @@ +c:\Users\lucab\OneDrive - Kt. SG BLD\Dokumente\Schule\Informatik\Grundlagen-Programmieren\Code\ost\_00_hello_world\src\main\java\module-info.java +c:\Users\lucab\OneDrive - Kt. SG BLD\Dokumente\Schule\Informatik\Grundlagen-Programmieren\Code\ost\_00_hello_world\src\main\java\com\example\App.java +c:\Users\lucab\OneDrive - Kt. SG BLD\Dokumente\Schule\Informatik\Grundlagen-Programmieren\Code\ost\_00_hello_world\src\main\java\com\example\SystemInfo.java