title: monoalphabetic ciper decryption?
body: <p>Can anybody see what i'm doing wrong here? I have an algorithm that encrypts a string by moving it 14 spaces along an array but when i try and decrypt it some of the letters are repeated for example<br>
  when encrypted: abcdefghijklmnopqrstuvwxyz  == opqrstuvwxyzabcdefghijklmn<br>
  when decrypted: opqrstuvwxyzabcdefghijklmn  == abcdefghijklklabcdefghijkl</p>
  
  <pre><code>char[] plaintext = input.toCharArray();
  
  for(int i = 0; i&lt;plaintext.length; i++) {
      for(int j = 0 ; j&lt;26; j++) {
          if(j&gt;=14 &amp;&amp; plaintext[i]==alphabet[j]) {
              plaintext[i] = alphabet[j-14];
              break;
          }
  
          else if(plaintext[i] == alphabet[j] &amp;&amp; j&lt;14 ) {
              plaintext[i] = alphabet [j+14] ;
          }
      }
  }
  </code></pre>