/* package whatever; // don't place package name! */ /* Name of the class has to be "Main" only if the class is public. */ class Ideone { static char decrypt(char c, int k) { return (char)(((int)(c-'A')+26-k)%26+'a'); } { char cipherAlphabet[]=cipher.toCharArray(); for(int k=1; k<26; k++) { for(int i=0; i<cipherAlphabet.length; i++) { } } } }