iForgot Panzerotti
All checks were successful
Deploy / trigger (push) Successful in 25s

parentesi fritte sono gustose

Signed-off-by: Francesco Mancuso <hello@francescomancuso.it>
This commit is contained in:
2026-04-21 13:45:38 +02:00
parent d7cca0099b
commit 5086cdf6b8

View File

@@ -7,7 +7,7 @@ public class Caesar {
for(int i = 0; i < plaintext.length(); i++){
if (encoded[i] == ' ') continue;
encoded[i] = alphabet.charAt(alphabet.indexOf(encoded[i]) + key % 26);
encoded[i] = alphabet.charAt((alphabet.indexOf(encoded[i]) + key) % 26);
}
return String.valueOf(encoded);
}