diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-02-04 18:19:52 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-02-04 18:19:52 +0100 |
| commit | 4f0baff4a9cf6e1f7d72099108b0fd424489ca82 (patch) | |
| tree | 470bf674e6a24a66e28ce5e78d1445319b8df481 /Info/11/NTG | |
| parent | 25f89f3cd615c40d35d0b7db0200dcd20f0655bc (diff) | |
| download | unterricht-4f0baff4a9cf6e1f7d72099108b0fd424489ca82.tar.gz unterricht-4f0baff4a9cf6e1f7d72099108b0fd424489ca82.zip | |
fix easy caesar cipher solution
Diffstat (limited to 'Info/11/NTG')
| -rw-r--r-- | Info/11/NTG/2/Caesar-Implementierung/leicht.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Info/11/NTG/2/Caesar-Implementierung/leicht.md b/Info/11/NTG/2/Caesar-Implementierung/leicht.md index 3c037ccb..9345f0a8 100644 --- a/Info/11/NTG/2/Caesar-Implementierung/leicht.md +++ b/Info/11/NTG/2/Caesar-Implementierung/leicht.md @@ -74,9 +74,9 @@ static String caesar(String eingabe, int verschiebung) { pos = (pos + verschiebung) % 26; // Addiere den Wert von 'a', // um den Zahlenwert des Zeichens zu erhalten. - c = pos + 97; + c = (char)(pos + 97); } - output += c; + ausggabe += c; } return ausgabe; } |
