Home Tutorial Java Corejava Convert integer to ASCII

 
 

Share on Google+Share on Google+
Convert integer to ASCII
Posted on: June 29, 2010 at 12:00 AM
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

Advertisement

Related Tags for Convert integer to ASCII:


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.

Posted on: June 29, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com