Convert integer to ASCII
This example demonstrate how to convert integer to ASCII in java.
This example demonstrate how to convert integer to ASCII in java.
Code:
public class IntToAscii {
public static void main(String[] args) throws Exception {
char c = 'A';
int i = (int) c;
System.out.println(i);
}
}
|
Output:
Download this code