Q:

Java Vigenere Cipher

I'am trying to decipher Vigenere_Cipher 
when i enter BEXR TKGKTRQFARI the output is JAVAPROGRAMMING But i want 
to put space like JAVA PROGRAMMING. 
My Code
public static String VigenereDecipher(String text) {
    String keyword = "SECRET";
    String decipheredText = "";
    text = text.toUpperCase();
    for (int i = 0, j = 0; i < text.length(); i++) {
        char c = text.charAt(i);
        if (c < 'A' || c > 'Z') continue;
        decipheredText += (char)((c - keyword.charAt(j) + 26) % 26 + 'A');
        j = ++j % keyword.length();
    }  
    return decipheredText;
}

A:

You're explicitly ignoring the spaces.  You simply need to add this line:
if (c == ' ') {
   decipheredText += ' ';
}

Make sure to put it right before this line:
if (c < 'A' || c > 'Z') continue;

