Signed-off-by: Francesco Mancuso <hello@francescomancuso.it>
This commit is contained in:
1 parent
5086cdf6b8
commit
8c23a08e2a
1 file changed
+4
-1
@@ -22,7 +22,10 @@ public class Caesar {
|
||||
for(int key = 0; key < alphabet.length(); key++){
|
||||
|
||||
for(int i = 0; i < ciphertext.length(); i++){
|
||||
if (encoded[i] == ' ') continue;
|
||||
if (encoded[i] == ' ') {
|
||||
decoded[i] = encoded[i];
|
||||
continue;
|
||||
}
|
||||
char current = encoded[i];
|
||||
int pos = alphabet.indexOf(current);
|
||||
if(pos != -1) {
|
||||
|
||||
Reference in new issue
Block a user