Last active
September 2, 2019 16:56
-
-
Save dastanko/5720570 to your computer and use it in GitHub Desktop.
Шаблон на Java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CesarCipher { | |
private char[] alphabet; | |
private int shift; | |
public void setAlphabet(char[] alphabet) { | |
this.alphabet = alphabet; | |
} | |
public void setShift(int shift) { | |
this.shift = shift; | |
} | |
public String encode(String plainText){ | |
// реализация | |
return encoded_text; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment