Share on Google+Share on Google+

Convert integer to ASCII

Advertisement
This example demonstrate how to convert integer to ASCII in java.

Code:

public class IntToAscii {
  public static void main(String[] argsthrows Exception {
    char c = 'A';
    int i = (intc;
    System.out.println(i);
  }
}

Output:

Download this code

Advertisements

Advertisement

Posted on: June 29, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.