]> Git Server - tankstelle.git/commitdiff
Initialized repository and added classes: Main, Tankstelle, Treibstoff and the enum...
authorRobin Cheney <cheneyr@eternal.ddnss.de>
Tue, 4 Nov 2025 09:53:37 +0000 (10:53 +0100)
committerRobin Cheney <cheneyr@eternal.ddnss.de>
Tue, 4 Nov 2025 09:53:37 +0000 (10:53 +0100)
.gitignore [new file with mode: 0644]
pom.xml [new file with mode: 0644]
src/main/java/de/eternal/tankstelle/Main.java [new file with mode: 0644]
src/main/java/de/eternal/tankstelle/Tankstelle.java [new file with mode: 0644]
src/main/java/de/eternal/tankstelle/Treibstoff.java [new file with mode: 0644]
src/main/java/de/eternal/tankstelle/Treibstofftyp.java [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..eb1fb71
--- /dev/null
@@ -0,0 +1,4 @@
+target/classes/de/eternal/tankstelle/Main.class
+target/classes/de/eternal/tankstelle/Treibstoff.class
+target/classes/de/eternal/tankstelle/Treibstofftyp.class
+target/classes/de/eternal/tankstelle/Tankstelle.class
diff --git a/pom.xml b/pom.xml
new file mode 100644 (file)
index 0000000..5a2c2e3
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>de.eternal.tankstelle</groupId>
+    <artifactId>tankstelle</artifactId>
+    <version>1.0-SNAPSHOT</version>
+
+    <properties>
+        <maven.compiler.source>17</maven.compiler.source>
+        <maven.compiler.target>17</maven.compiler.target>
+    </properties>
+
+</project>
\ No newline at end of file
diff --git a/src/main/java/de/eternal/tankstelle/Main.java b/src/main/java/de/eternal/tankstelle/Main.java
new file mode 100644 (file)
index 0000000..c79035f
--- /dev/null
@@ -0,0 +1,7 @@
+package de.eternal.tankstelle;
+
+public class Main {
+    public static void main(String[] args) {
+        System.out.println("Hello world!");
+    }
+}
\ No newline at end of file
diff --git a/src/main/java/de/eternal/tankstelle/Tankstelle.java b/src/main/java/de/eternal/tankstelle/Tankstelle.java
new file mode 100644 (file)
index 0000000..598c6ba
--- /dev/null
@@ -0,0 +1,7 @@
+package de.eternal.tankstelle;
+
+public class Tankstelle {
+    byte mitarbeiterzahl;
+    Treibstoff[] treibstoffe;
+
+}
diff --git a/src/main/java/de/eternal/tankstelle/Treibstoff.java b/src/main/java/de/eternal/tankstelle/Treibstoff.java
new file mode 100644 (file)
index 0000000..2359b70
--- /dev/null
@@ -0,0 +1,12 @@
+package de.eternal.tankstelle;
+
+public class Treibstoff {
+    public final Treibstofftyp TREIBSTOFFTYP;
+
+    public int menge;
+
+    Treibstoff(Treibstofftyp Treibstofftyp, int menge) {
+        this.TREIBSTOFFTYP = Treibstofftyp;
+        this.menge = menge;
+    }
+}
diff --git a/src/main/java/de/eternal/tankstelle/Treibstofftyp.java b/src/main/java/de/eternal/tankstelle/Treibstofftyp.java
new file mode 100644 (file)
index 0000000..822c188
--- /dev/null
@@ -0,0 +1,9 @@
+package de.eternal.tankstelle;
+
+public enum Treibstofftyp {
+    SUPER,
+    DIESEL,
+    SUPER_E10,
+    PREMIUM_DIESEL,
+    AUTOGAS
+}