From 0b609eecb3aa1ca8e25b145f7b0859095d8c9607 Mon Sep 17 00:00:00 2001 From: Christoph Klinck <3013460@stud.hs-mannheim.de> Date: Tue, 17 Oct 2023 17:56:07 +0200 Subject: [PATCH] das war nur ein test --- Compile.java | 1 + Exchange.java | 11 +++++++++++ Sum.java | 24 ++++++++++++++++++++++++ Trace-Table.md | 6 ++++++ 4 files changed, 42 insertions(+) create mode 100644 Compile.java create mode 100644 Exchange.java create mode 100644 Sum.java create mode 100644 Trace-Table.md diff --git a/Compile.java b/Compile.java new file mode 100644 index 0000000..c9116a4 --- /dev/null +++ b/Compile.java @@ -0,0 +1 @@ +\u0070\u0075\u0062\u006C\u0069\u0063\u0020\u0063\u006C\u0061\u0073\u0073\u0020\u0043\u006F\u006D\u0070\u0069\u006C\u0065\u0020\u007B\u000A\u000A\u0009\u0070\u0075\u0062\u006C\u0069\u0063\u0020\u0073\u0074\u0061\u0074\u0069\u0063\u0020\u0076\u006F\u0069\u0064\u0020\u006D\u0061\u0069\u006E\u0028\u0053\u0074\u0072\u0069\u006E\u0067\u005B\u005D\u0020\u0061\u0072\u0067\u0073\u0029\u0020\u007B\u000A\u0009\u0009\u000A\u0009\u0009\u0053\u0079\u0073\u0074\u0065\u006D\u002E\u006F\u0075\u0074\u002E\u0070\u0072\u0069\u006E\u0074\u006C\u006E\u0028\u0022\u004C\u0069\u0065\u0062\u0065\u0072\u0020\u0050\u0052\u0031\u002D\u004B\u0075\u0072\u0073\u002E\u0020\u0048\u0065\u0072\u007A\u006C\u0069\u0063\u0068\u0020\u0057\u0069\u006C\u006C\u006B\u006F\u006D\u006D\u0065\u006E\u0020\u007A\u0075\u0072\u0020\u0065\u0072\u0073\u0074\u0065\u006E\u0020\u004A\u0061\u0076\u0061\u0020\u00DC\u0062\u0075\u006E\u0067\u002E\u0022\u0029\u003B\u000A\u0009\u007D\u000A\u007D diff --git a/Exchange.java b/Exchange.java new file mode 100644 index 0000000..dab233e --- /dev/null +++ b/Exchange.java @@ -0,0 +1,11 @@ +public class Exchange { + + public static void main(String[] args) { + + int a = 1234; + int b = 99; + int t = a; + a = b; + b = t; + } +} diff --git a/Sum.java b/Sum.java new file mode 100644 index 0000000..82e175c --- /dev/null +++ b/Sum.java @@ -0,0 +1,24 @@ +public class Sum { + + public static void main(String[] args) { + + + int n; + int s; + int i; + + + n = 4; + s = 0; + i = 1; + + + while(i <=n) { + s = s + i; + i = i + 1; + } + + System.out.println(s); + } +} + diff --git a/Trace-Table.md b/Trace-Table.md new file mode 100644 index 0000000..ebcd38c --- /dev/null +++ b/Trace-Table.md @@ -0,0 +1,6 @@ + a b t +int a = 1234 1234 - - +int b = 99 1234 99 - +int t = a 1234 99 1234 +a = b 99 99 1234 +b = t 99 1234 1234