Printing next ASCII character in the sequence
<p>I want to know that how to recognize and print next character in ASCII sequence if input is a non- string value like "space" or "!". </p>

<p>I know that for string value we can convert it into ASCII value by using </p>

<pre><code>     char character = 'a';    
     int ascii = (int) character;
</code></pre>

<p>Then adding 1 to it and converting it back to char , we can get next value in the sequence .</p>