From 2c17f1dad1bd9d76605226c602dc53b2983bcab7 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 12 Apr 2023 12:09:27 +0200 Subject: add BlueJ Prison project --- Info/10/2/Prison/ZELLE.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 Info/10/2/Prison/ZELLE.java (limited to 'Info/10/2/Prison/ZELLE.java') diff --git a/Info/10/2/Prison/ZELLE.java b/Info/10/2/Prison/ZELLE.java new file mode 100755 index 00000000..f698c73c --- /dev/null +++ b/Info/10/2/Prison/ZELLE.java @@ -0,0 +1,22 @@ +public class ZELLE +{ + private boolean versperrt; + + public ZELLE() + { + versperrt = true; + } + + public void Umschalten() + { + if (versperrt) { + versperrt = false; + } else { + versperrt = true; + } + } + + public boolean IstVersperrt() { + return versperrt; + } +} -- cgit v1.2.3