Код: Выделить всё
C = Integer.valueOf(ceasarNr);
String initialString = yourString.getText().toString();
char[] chars = initialString.toCharArray();
for (int i = 0; i < chars.length; ++i)
chars[i] = (char)((int)chars[i] + C);
String resultString = new String(chars);
krypteredeTekst.setText(resultString);
Подробнее здесь: https://stackoverflow.com/questions/162 ... om-my-code