diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-06-11 11:55:22 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-06-11 11:55:22 +0200 |
| commit | 160a69856247322e4a07bc1a313cb73338de0275 (patch) | |
| tree | 74d6166d11ccffb67315ede959776986692291c5 /Info | |
| parent | f94132923c67903b1a2ec54aefb0273d232e7ede (diff) | |
| download | unterricht-160a69856247322e4a07bc1a313cb73338de0275.tar.gz unterricht-160a69856247322e4a07bc1a313cb73338de0275.zip | |
fix whitespace errors
Diffstat (limited to 'Info')
| -rwxr-xr-x | Info/10/2/Prison/GEFAENGNIS.java | 8 | ||||
| -rwxr-xr-x | Info/10/2/Prison/WACHE.java | 2 | ||||
| -rwxr-xr-x | Info/10/2/Prison/ZELLE.java | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/Info/10/2/Prison/GEFAENGNIS.java b/Info/10/2/Prison/GEFAENGNIS.java index 86c1f272..f6686135 100755 --- a/Info/10/2/Prison/GEFAENGNIS.java +++ b/Info/10/2/Prison/GEFAENGNIS.java @@ -7,7 +7,7 @@ public class GEFAENGNIS { zellen = new ZELLE[zellenAnzahl]; wachen = new WACHE[zellenAnzahl]; - + for(int i = 0; i < zellenAnzahl; i++) { zellen[i] = new ZELLE(); wachen[i] = new WACHE(i + 1); @@ -21,15 +21,15 @@ public class GEFAENGNIS wachen[i].Besuche(j + 1, zellen[j]); } } - + String ausgabe = ""; - + for (int i = 0; i < zellen.length; i++) { if (!zellen[i].IstVersperrt()) { ausgabe += i + 1 + ", "; } } - + System.out.println(ausgabe); } diff --git a/Info/10/2/Prison/WACHE.java b/Info/10/2/Prison/WACHE.java index 03d3b7f1..068e07b5 100755 --- a/Info/10/2/Prison/WACHE.java +++ b/Info/10/2/Prison/WACHE.java @@ -6,7 +6,7 @@ public class WACHE { id = nummer; } - + public void Besuche(int zellenNummer, ZELLE zelle) { if (zellenNummer % id == 0) { diff --git a/Info/10/2/Prison/ZELLE.java b/Info/10/2/Prison/ZELLE.java index f698c73c..96ee4d61 100755 --- a/Info/10/2/Prison/ZELLE.java +++ b/Info/10/2/Prison/ZELLE.java @@ -15,7 +15,7 @@ public class ZELLE versperrt = true; } } - + public boolean IstVersperrt() { return versperrt; } |
