Converting ASCII code to char in Java
<p>Here's my code below and it prints J=74, A =65, and M=77. How do I get it to print just the characters K, B, N as the result of moving down the alphabet? </p>

<pre><code>BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));
String string = JOptionPane.showInputDialog( " Please Enter Code " );

for (int i = 0; i &lt; string.length (); ++i) {
    char c = string.charAt(i);
    int j = (int)c;
}


System.out.println("ASCII OF "+c +" = " + j + ".");
</code></pre>
