Java Program To Print ASCII Values
Chapter:
Miscellaneous
Last Updated:
06-04-2017 20:02:16 UTC
Program:
/* ............... START ............... */
public class JavaPrintASCII {
public static void main(String args[]) {
String ch;
int i;
for (i = 1; i <= 5; i++) {
ch = new Character((char) i).toString();
System.out.print(i + " -> " + ch + "\t");
}
}
}
/* ............... END ............... */
Tags
Print ASCII Values, Java, Miscellaneous