From c212b2687760ae9568db12a82a2268294a5bef31 Mon Sep 17 00:00:00 2001 From: SteffenLm <33038091+SteffenLm@users.noreply.github.com> Date: Fri, 21 Oct 2022 08:47:59 +0200 Subject: [PATCH 1/3] add solution --- Exercise.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Exercise.java b/Exercise.java index 3c092f9..9d59490 100644 --- a/Exercise.java +++ b/Exercise.java @@ -1,6 +1,14 @@ public class Exercise { public static void main(String[] args) { - // implement exercise here + int a = 13; + int b = 4; + int c = a / b; + int d = a % b; + + System.out.println("a: " + a); + System.out.println("b: " + b); + System.out.println("Ganzzahliger Quotient von a/b: " + c); + System.out.println("Divisionsrest von a/b: " + d); } } From 039422a8d5f72d88f91b62c98ca808b2e76cd338 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 21 Oct 2022 06:48:18 +0000 Subject: [PATCH 2/3] Google Java Format --- Exercise.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Exercise.java b/Exercise.java index 9d59490..5130a79 100644 --- a/Exercise.java +++ b/Exercise.java @@ -6,9 +6,9 @@ public static void main(String[] args) { int c = a / b; int d = a % b; - System.out.println("a: " + a); - System.out.println("b: " + b); - System.out.println("Ganzzahliger Quotient von a/b: " + c); - System.out.println("Divisionsrest von a/b: " + d); + System.out.println("a: " + a); + System.out.println("b: " + b); + System.out.println("Ganzzahliger Quotient von a/b: " + c); + System.out.println("Divisionsrest von a/b: " + d); } } From 8124fddcf4d25849a70e610f3276297bf730c20a Mon Sep 17 00:00:00 2001 From: SteffenLm <33038091+SteffenLm@users.noreply.github.com> Date: Fri, 19 Dec 2025 20:58:18 +0000 Subject: [PATCH 3/3] add dev container --- .devcontainer.json | 3 +++ .vscode/extensions.json | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 .devcontainer.json create mode 100644 .vscode/extensions.json diff --git a/.devcontainer.json b/.devcontainer.json new file mode 100644 index 0000000..bfbeb0d --- /dev/null +++ b/.devcontainer.json @@ -0,0 +1,3 @@ +{ + "image": "mcr.microsoft.com/devcontainers/java:21" +} \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..add4f4e --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "vscjava.vscode-java-pack" + ] +} \ No newline at end of file