title: How do I shift the value of my char array in java?
body: <p>What I'm trying to do is create an encryption method that shifts a char array taken from an input file by a determined amount of letters. I'm having trouble figuring out how to change the chars into ints and back.
  THis is what I've got so far:</p>
  
  <pre><code>char [] sChar = new char[line.length()];
  
      for(int i = 0; i &lt; sChar.length; i++){
          String s = reader.next();
          sChar = s.toCharArray();
          if(Character.isLetter(sChar[i])) {
              char c = 'a';
              int b = c;
              sChar[i] += key;
  </code></pre>