From c44af107d7e8b2e632834c2ae04e5749c840d7bf Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Mon, 24 Apr 2023 08:58:06 +0200 Subject: [PATCH] create world --- .idea/misc.xml | 2 +- .idea/modules.xml | 1 + .idea/uiDesigner.xml | 124 +++++++++++++++++++++++++++++++++++++ .idea/vcs.xml | 1 + .idea/workspace.xml | 72 +++++++++++++++++---- Welt/.gitignore | 29 +++++++++ Welt/Welt.iml | 11 ++++ Welt/src/Welt.java | 26 ++++++++ aviation/.idea/.gitignore | 3 + aviation/.idea/misc.xml | 9 +++ aviation/.idea/modules.xml | 8 +++ aviation/.idea/vcs.xml | 6 ++ 12 files changed, 280 insertions(+), 12 deletions(-) create mode 100644 .idea/uiDesigner.xml create mode 100644 Welt/.gitignore create mode 100644 Welt/Welt.iml create mode 100644 Welt/src/Welt.java create mode 100644 aviation/.idea/.gitignore create mode 100644 aviation/.idea/misc.xml create mode 100644 aviation/.idea/modules.xml create mode 100644 aviation/.idea/vcs.xml diff --git a/.idea/misc.xml b/.idea/misc.xml index a818314..07115cd 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml index 308782f..056eeed 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -3,6 +3,7 @@ + diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml new file mode 100644 index 0000000..2b63946 --- /dev/null +++ b/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 35eb1dd..4465dc8 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -2,5 +2,6 @@ + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 8ee45aa..e0b4067 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,16 +1,24 @@ + + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -47,6 +71,28 @@ + + 1682082742155 + + + 1682082764131 + + + 1682082812505 + + @@ -62,5 +108,9 @@ \ No newline at end of file diff --git a/Welt/.gitignore b/Welt/.gitignore new file mode 100644 index 0000000..f68d109 --- /dev/null +++ b/Welt/.gitignore @@ -0,0 +1,29 @@ +### IntelliJ IDEA ### +out/ +!**/src/main/**/out/ +!**/src/test/**/out/ + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache +bin/ +!**/src/main/**/bin/ +!**/src/test/**/bin/ + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/Welt/Welt.iml b/Welt/Welt.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/Welt/Welt.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Welt/src/Welt.java b/Welt/src/Welt.java new file mode 100644 index 0000000..aede5f6 --- /dev/null +++ b/Welt/src/Welt.java @@ -0,0 +1,26 @@ +import java.math.BigInteger; + +/** Aufgabe 1: Objekte anlegen + * + * Erstelle eine Klasse Welt mit folgende attributen: + * •Name + * •Anzahl Länder + * •Bevölkerungsmenge + * Erstelle ein Objekt Kontinent + * Weise den Attributen Werte zu und gebe sie auf dem Bildschirm aus. + */ +public class Welt { + public String name; + public int anzahlLaender; + public int bevoelkerungsMenge; + public static void main(String[] args) { + Welt kontinent = new Welt(); + kontinent.name = "Dreamland"; + kontinent.anzahlLaender = 4; + kontinent.bevoelkerungsMenge = 500; + String output = String.format(("name: %s\n" + + "Anzahl Länder: %s\n" + + "Bevölkerungsmenge: %s"), kontinent.name, kontinent.anzahlLaender, kontinent.bevoelkerungsMenge); + System.out.println(output); + } +} \ No newline at end of file diff --git a/aviation/.idea/.gitignore b/aviation/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/aviation/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/aviation/.idea/misc.xml b/aviation/.idea/misc.xml new file mode 100644 index 0000000..7cd66c8 --- /dev/null +++ b/aviation/.idea/misc.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/aviation/.idea/modules.xml b/aviation/.idea/modules.xml new file mode 100644 index 0000000..ebe0693 --- /dev/null +++ b/aviation/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/aviation/.idea/vcs.xml b/aviation/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/aviation/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file