title: How can I display the desired value in ASCII code inputted by me?
body: <p>I need Java code. Please help me. Example: when I enter the number in ASCII</p>
  
  <pre><code>0 the output will be nul
  1 for soh
  2 for stx until it reaches the max number of ASCII.
  </code></pre>
  
  <p>Consider this code. It outputs an ASCII number. How can I reverse it? </p>
  
  <pre><code>String test = "ABCD";
  for ( int i = 0; i &lt; test.length(); ++i ) {
      char c = test.charAt( i );
      int j = (int) c;
      System.out.println(j);
  }
  </code></pre>